Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768968
D1747.id4440.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.id4440.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,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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 11:45 (12 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260109
Default Alt Text
D1747.id4440.diff (1 KB)
Attached To
Mode
D1747: Install rustup in /usr/local
Attached
Detach File
Event Timeline
Log In to Comment