Skip to content

Commit d353d9f

Browse files
feat(build): add rustup to the release image (#17100) (#17126)
Signed-off-by: Runji Wang <[email protected]> Co-authored-by: Runji Wang <[email protected]>
1 parent 92dac30 commit d353d9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docker/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,14 @@ LABEL org.opencontainers.image.source https://github.com/risingwavelabs/risingwa
124124
RUN apt-get update && apt-get -y install linux-tools-generic \
125125
&& ln -s "$(find /usr/lib/linux-tools/*/perf | head -1)" /usr/local/bin/perf
126126

127-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install gdb libpam-krb5 krb5-user telnet kafkacat \
127+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install gdb libpam-krb5 krb5-user telnet kafkacat rustup \
128128
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
129129

130+
# Set default Rust toolchain but don't install it to keep the image size small
131+
# The toolchain will be installed when it is first used
132+
# Do not use `rustup default stable` because it will install immediately
133+
RUN rustup show && sed -i '1s/^/default_toolchain = "stable"\n/' ~/.rustup/settings.toml
134+
130135
RUN mkdir -p /risingwave/bin/connector-node && mkdir -p /risingwave/lib
131136

132137
COPY --from=rust-builder /risingwave/bin/risingwave /risingwave/bin/risingwave

0 commit comments

Comments
 (0)