Page MenuHomeDevCentral

D1747.id4440.diff
No OneTemporary

D1747.id4440.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,15 @@
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 component add clippy-preview --toolchain=nightly && \
+ /usr/local/cargo/bin/rustup component add rustfmt-preview --toolchain=nightly
USER root

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 11:45 (10 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260109
Default Alt Text
D1747.id4440.diff (1 KB)

Event Timeline