forked from google-coral/libedgetpu
-
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.
- Loading branch information
1 parent
642a289
commit f8cac10
Showing
19 changed files
with
269 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bazel-* | ||
out/ | ||
WORKSPACE |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
ARG IMAGE | ||
FROM ${IMAGE} | ||
|
||
COPY update_sources.sh / | ||
RUN /update_sources.sh | ||
|
||
RUN dpkg --add-architecture armhf | ||
RUN dpkg --add-architecture arm64 | ||
RUN apt-get update && apt-get install -y \ | ||
python \ | ||
python-future \ | ||
python-numpy \ | ||
build-essential \ | ||
crossbuild-essential-armhf \ | ||
crossbuild-essential-arm64 \ | ||
libusb-1.0-0-dev \ | ||
libusb-1.0-0-dev:arm64 \ | ||
libusb-1.0-0-dev:armhf \ | ||
zlib1g-dev \ | ||
zlib1g-dev:armhf \ | ||
zlib1g-dev:arm64 \ | ||
sudo \ | ||
pkg-config \ | ||
zip \ | ||
unzip \ | ||
curl \ | ||
wget \ | ||
git \ | ||
$(grep Ubuntu /etc/os-release > /dev/null && echo vim-common || echo xxd) | ||
|
||
RUN git clone https://github.com/raspberrypi/tools.git && \ | ||
cd tools && \ | ||
git reset --hard 4a335520900ce55e251ac4f420f52bf0b2ab6b1f | ||
|
||
ARG BAZEL_VERSION=3.2.0 | ||
RUN wget -O /bazel https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh && \ | ||
bash /bazel && \ | ||
rm -f /bazel |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM mcr.microsoft.com/windows/servercore:1903 | ||
SHELL ["powershell", "-command"] | ||
|
||
# Install chocolatey + Win10 SDK + VS build tools | ||
RUN "Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" | ||
RUN choco install -y windows-sdk-10 | ||
RUN choco install -y visualstudio2019buildtools | ||
RUN choco install -y visualstudio2019-workload-vctools | ||
RUN choco install -y python3 | ||
RUN python -m pip install six numpy wheel | ||
|
||
# Install 7-zip | ||
RUN choco install -y 7zip | ||
RUN setx /M PATH $($Env:PATH + ';C:\Program Files\7-Zip') | ||
|
||
# Install msys2 | ||
ARG MSYS_VERSION=20200602 | ||
ADD http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-${MSYS_VERSION}.tar.xz c:/windows/temp | ||
RUN 7z.exe x c:\windows\temp\msys2-base-x86_64-$env:MSYS_VERSION.tar.xz | ||
RUN 7z.exe x c:\msys2-base-x86_64-$env:MSYS_VERSION.tar -o"c:\\" | ||
RUN setx /M PATH $($Env:PATH + ';C:\msys64\usr\bin') | ||
|
||
# Install patch | ||
ARG PATCH_VERSION=2.7.6-1 | ||
ADD http://repo.msys2.org/msys/x86_64/patch-${PATCH_VERSION}-x86_64.pkg.tar.xz c:/windows/temp | ||
RUN 7z.exe x -y c:\windows\temp\patch-$env:PATCH_VERSION-x86_64.pkg.tar.xz | ||
RUN 7z.exe x -y c:\patch-$env:PATCH_VERSION-x86_64.pkg.tar -o"c:\\msys64" | ||
|
||
# Install vim (for xxd) | ||
ARG VIM_VERSION=8.2.0592-1 | ||
ADD http://repo.msys2.org/msys/x86_64/vim-${VIM_VERSION}-x86_64.pkg.tar.xz c:/windows/temp | ||
RUN 7z.exe x -y c:\windows\temp\vim-$env:VIM_VERSION-x86_64.pkg.tar.xz | ||
RUN 7z.exe x -y c:\vim-$env:VIM_VERSION-x86_64.pkg.tar -o"c:\\msys64" | ||
|
||
# Install libusb release package | ||
ARG LIBUSB_VERSION=1.0.22 | ||
ADD https://github.com/libusb/libusb/releases/download/v${LIBUSB_VERSION}/libusb-${LIBUSB_VERSION}.7z c:/windows/temp | ||
RUN 7z x -oc:\libusb-1.0.22 c:\windows\temp\libusb-1.0.22.7z | ||
|
||
# Install Bazel | ||
ARG BAZEL_VERSION=3.2.0 | ||
ADD https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-windows-x86_64.exe c:/windows/system32/bazel.exe |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
. /etc/os-release | ||
|
||
[[ "${NAME}" == "Ubuntu" ]] || exit 0 | ||
|
||
sed -i "s/deb\ /deb \[arch=amd64\]\ /g" /etc/apt/sources.list | ||
|
||
cat <<EOT >> /etc/apt/sources.list | ||
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports ${UBUNTU_CODENAME} main universe | ||
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports ${UBUNTU_CODENAME}-updates main universe | ||
deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports ${UBUNTU_CODENAME}-security main universe | ||
EOT |
Oops, something went wrong.