forked from bitcraze/aideck-gap8-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(bitcraze#35) update dockerfiles, examples and docs to 3.8.1
- Loading branch information
Showing
11 changed files
with
34 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,43 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && apt-get install -y build-essential git libftdi-dev libftdi1 doxygen python3-pip libsdl2-dev curl cmake libusb-1.0-0-dev scons gtkwave libsndfile1-dev rsync autoconf automake texinfo libtool pkg-config libsdl2-ttf-dev libopencv-dev | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ARG GAP_SDK_VERSION | ||
RUN echo $GAP_SDK_VERSION | ||
|
||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && apt-get install git-lfs && git lfs install | ||
# Install needed packages | ||
RUN apt-get update && apt-get install -y build-essential git libftdi-dev libftdi1 doxygen python3-pip libsdl2-dev curl cmake libusb-1.0-0-dev scons gtkwave libsndfile1-dev rsync autoconf automake texinfo libtool pkg-config libsdl2-ttf-dev | ||
RUN apt-get install -y wget | ||
|
||
# Install gap8 openocd | ||
RUN git clone https://github.com/GreenWaves-Technologies/gap8_openocd.git; cd gap8_openocd; ./bootstrap; ./configure --program-prefix=gap8- --prefix=/usr --datarootdir=/usr/share/gap8-openocd; make -j; make -j install | ||
|
||
RUN git clone https://github.com/GreenWaves-Technologies/gap_riscv_toolchain_ubuntu_18.git | ||
# Install toolchain | ||
RUN git clone https://github.com/GreenWaves-Technologies/gap_riscv_toolchain_ubuntu_18.git; cd gap_riscv_toolchain_ubuntu_18 && ./install.sh "/usr/lib/gap_riscv_toolchain" && cd .. | ||
|
||
RUN cd gap_riscv_toolchain_ubuntu_18 && ./install.sh "/usr/lib/gap_riscv_toolchain" && cd .. | ||
# Install Gap SDK | ||
RUN git clone https://github.com/GreenWaves-Technologies/gap_sdk.git; cd gap_sdk && git fetch --all --tags && git checkout tags/release-v${GAP_SDK_VERSION} && git submodule update --init --recursive | ||
|
||
RUN git clone https://github.com/GreenWaves-Technologies/gap_sdk.git | ||
RUN pip3 install -U pip && cd gap_sdk && pip3 install -r requirements.txt; | ||
|
||
ARG GAP_SDK_VERSION | ||
RUN cd gap_sdk && git fetch --all --tags && git checkout tags/release-v${GAP_SDK_VERSION} && git submodule update --init --recursive | ||
# These are needed since python2 is used by standard in 18.04 | ||
RUN apt-get install -y python-pip | ||
RUN python -m pip install configparser | ||
#RUN pip3 install requests | ||
|
||
RUN pip3 install -U pip && cd gap_sdk && pip3 install -r requirements.txt && pip3 install -r tools/nntool/requirements.txt | ||
#RUN /bin/bash -c "echo 'alias python = python3' >> ~/.bashrc " | ||
|
||
|
||
RUN /bin/bash -c "cd gap_sdk/; source configs/ai_deck.sh; ls; make all;" | ||
|
||
RUN /bin/bash -c "cd gap_sdk/; source configs/ai_deck.sh; ls; make gap_tools" | ||
|
||
RUN apt install wget | ||
RUN cd gap_sdk; pip3 install -r tools/nntool/requirements.txt | ||
|
||
RUN /bin/bash -c "cd gap_sdk/; source configs/ai_deck.sh; ls; make nntool" | ||
|
||
RUN pip3 install requests | ||
|
||
RUN /bin/bash -c "cd gap_sdk/; source configs/ai_deck.sh; ls; make openocd" | ||
RUN /bin/bash -c "cd gap_sdk/; source configs/ai_deck.sh; ls; make pulp-os" | ||
RUN apt-get install -y libopencv-dev python3-opencv | ||
|
||
RUN pip3 install tensorflow==1.15.2 scikit-image==0.15.0 scikit-learn==0.21.3 | ||
RUN /bin/bash -c "cd gap_sdk/; source configs/ai_deck.sh; ls; make gap_tools" | ||
|
||
RUN mkdir -p /module/data/ | ||
WORKDIR /module/data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters