Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3716733
D1747.id4443.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1747.id4443.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1747: Install rustup in /usr/local
Attached
Detach File
Event Timeline
Log In to Comment