-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build extra riotdocker variant that includes nightly Rust
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Dockerfile for RIOT build environments with extra Rust nightly | ||
# | ||
# The resulting image will be based on riotdocker, but also install the current | ||
# RIOT nightly versions to enable easy building of applications that need | ||
# nightly. | ||
|
||
ARG DOCKER_REGISTRY="docker.io/riot" | ||
FROM ${DOCKER_REGISTRY}/riotbuild:latest | ||
|
||
# For the value of CARGO_HOME, see the comments in riotbuild's Dockerfile. | ||
RUN \ | ||
set -ex; \ | ||
export CARGO_HOME=/opt/rustup/.cargo; \ | ||
rustup toolchain add nightly; \ | ||
for target in $(rustup target list --installed); \ | ||
do \ | ||
rustup target add $target --toolchain nightly; \ | ||
done; \ | ||
rustup default nightly |