Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
d1427ac5
Commit
d1427ac5
authored
Mar 21, 2025
by
Anant Sharma
Committed by
GitHub
Mar 21, 2025
Browse files
fix: use rustup-init for rust install (#319)
parent
43ff14ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
10 deletions
+34
-10
container/Dockerfile.tensorrt_llm
container/Dockerfile.tensorrt_llm
+19
-5
container/Dockerfile.vllm
container/Dockerfile.vllm
+15
-5
No files found.
container/Dockerfile.tensorrt_llm
View file @
d1427ac5
...
@@ -58,11 +58,25 @@ RUN ln -sf /bin/bash /bin/sh
...
@@ -58,11 +58,25 @@ RUN ln -sf /bin/bash /bin/sh
# Rust build/dev dependencies
# Rust build/dev dependencies
RUN apt-get update && \
RUN apt-get update && \
apt-get install --no-install-recommends --yes gdb protobuf-compiler cmake libssl-dev pkg-config
apt-get install --no-install-recommends -y \
gdb \
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
protobuf-compiler \
ENV PATH="/root/.cargo/bin:${PATH}"
cmake \
RUN rustup toolchain install 1.85.0-x86_64-unknown-linux-gnu
libssl-dev \
pkg-config
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.85.0 \
RUSTARCH=x86_64-unknown-linux-gnu
RUN wget --tries=3 --waitretry=5 "https://static.rust-lang.org/rustup/archive/1.28.1/${RUSTARCH}/rustup-init" && \
echo "a3339fb004c3d0bb9862ba0bce001861fe5cbde9c10d16591eb3f39ee6cd3e7f *rustup-init" | sha256sum -c - && \
chmod +x rustup-init && \
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${RUSTARCH} && \
rm rustup-init && \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
# Working directory
# Working directory
WORKDIR /workspace
WORKDIR /workspace
...
...
container/Dockerfile.vllm
View file @
d1427ac5
...
@@ -226,15 +226,25 @@ RUN ln -sf /bin/bash /bin/sh
...
@@ -226,15 +226,25 @@ RUN ln -sf /bin/bash /bin/sh
# Rust build/dev dependencies
# Rust build/dev dependencies
RUN apt update -y && \
RUN apt update -y && \
apt install -y \
apt install
--no-install-recommends
-y \
build-essential \
build-essential \
protobuf-compiler \
protobuf-compiler \
cmake \
cmake \
libssl-dev \
libssl-dev \
pkg-config && \
pkg-config
curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
ENV RUSTUP_HOME=/usr/local/rustup \
RUN rustup toolchain install 1.85.0-x86_64-unknown-linux-gnu
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.85.0 \
RUSTARCH=x86_64-unknown-linux-gnu
RUN wget --tries=3 --waitretry=5 "https://static.rust-lang.org/rustup/archive/1.28.1/${RUSTARCH}/rustup-init" && \
echo "a3339fb004c3d0bb9862ba0bce001861fe5cbde9c10d16591eb3f39ee6cd3e7f *rustup-init" | sha256sum -c - && \
chmod +x rustup-init && \
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${RUSTARCH} && \
rm rustup-init && \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
# Working directory
# Working directory
WORKDIR /workspace
WORKDIR /workspace
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment