-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get architecture from within container build
- Loading branch information
1 parent
045f201
commit 00514f8
Showing
2 changed files
with
6 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
FROM debian | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends --yes \ | ||
ca-certificates \ | ||
curl \ | ||
file \ | ||
python3 \ | ||
xz-utils \ | ||
zstd | ||
|
||
ARG version | ||
ARG arch | ||
|
||
ADD --chmod=744 https://github.com/HULKs/meta-nao/releases/download/${version}/HULKs-OS-${arch}-toolchain-${version}.sh /opt/toolchain.sh | ||
RUN curl --fail --location --progress-bar --output /opt/toolchain.sh \ | ||
https://github.com/HULKs/meta-nao/releases/download/${version}/HULKs-OS-$(uname -m)-toolchain-${version}.sh | ||
|
||
RUN /opt/toolchain.sh -d /naosdk -y && rm /opt/toolchain.sh | ||
RUN chmod +x /opt/toolchain.sh && /opt/toolchain.sh -d /naosdk -y && rm /opt/toolchain.sh | ||
RUN echo . /naosdk/environment-setup-corei7-64-aldebaran-linux >> /root/.bashrc |