Skip to content

Commit

Permalink
fix: make rust installation universal for all users (#68)
Browse files Browse the repository at this point in the history
`RUSTUP_HOME` must be defined before installing Rust, fix wrong
simplification from previous patch.
  • Loading branch information
antonbaliasnikov committed Mar 5, 2024
1 parent a4edd8a commit 918df65
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions images/llvm_runner/ubuntu22-llvm15.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ RUN update-alternatives --install \
update-alternatives --config gcc

# Install Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

# Set required environment variables
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
CARGO_NET_GIT_FETCH_WITH_CLI=true \
PATH=/usr/lib/llvm-15/bin:/usr/local/cargo/bin:${PATH} \
PATH=/usr/local/cargo/bin:$PATH
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y

# Set required environment variables
ENV PATH=/usr/lib/llvm-15/bin:${PATH} \
LD_LIBRARY_PATH=/usr/lib/llvm-15/lib:${LD_LIBRARY_PATH} \
LLVM_VERSION=15 \
CI_RUNNING=true

0 comments on commit 918df65

Please sign in to comment.