Page MenuHomeDevCentral

D1747.id4443.diff
No OneTemporary

D1747.id4443.diff

diff --git a/jenkins-slave-rust/Dockerfile b/jenkins-slave-rust/Dockerfile
--- a/jenkins-slave-rust/Dockerfile
+++ b/jenkins-slave-rust/Dockerfile
@@ -20,13 +20,17 @@
mkdir /home/app && \
useradd -u 431 -r -g app -d /home/app -s /bin/sh -c "Default application account" app && \
chown -R app:app /home/app && \
- chmod 711 /home/app
+ chmod 711 /home/app && \
+ mkdir /usr/local/cargo /usr/local/multirust && \
+ chown -R app:app /usr/local/cargo /usr/local/multirust
-USER app
-ENV TOOLCHAIN=nightly
+ENV TOOLCHAIN=nightly CARGO_HOME=/usr/local/cargo RUSTUP_HOME=/usr/local/multirust
+USER app
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN && \
- /home/app/.cargo/bin/rustup component add clippy-preview --toolchain=nightly && \
- /home/app/.cargo/bin/rustup component add rustfmt-preview --toolchain=nightly
+ /usr/local/cargo/bin/rustup install $TOOLCHAIN && \
+ /usr/local/cargo/bin/rustup default $TOOLCHAIN && \
+ /usr/local/cargo/bin/rustup component add clippy-preview --toolchain=$TOOLCHAIN && \
+ /usr/local/cargo/bin/rustup component add rustfmt-preview --toolchain=$TOOLCHAIN
USER root

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 19:38 (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232196
Default Alt Text
D1747.id4443.diff (1 KB)

Event Timeline