mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
osbuilder: specify default toolchain verion in rust-init.
Specify default toolchain version in rust-init. Fixes: #799 Signed-off-by: zhanghj <zhanghj.lc@inspur.com>
This commit is contained in:
parent
7fc41a771a
commit
7fbc789855
@ -319,13 +319,11 @@ RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSLf --output /tmp/rus
|
||||
chmod a+x /tmp/rust-init; \
|
||||
export http_proxy=${http_proxy:-}; \
|
||||
export https_proxy=${http_proxy:-}; \
|
||||
/tmp/rust-init -y
|
||||
/tmp/rust-init -y --default-toolchain ${RUST_VERSION}
|
||||
RUN . /root/.cargo/env; \
|
||||
export http_proxy=${http_proxy:-}; \
|
||||
export https_proxy=${http_proxy:-}; \
|
||||
cargo install cargo-when; \
|
||||
rustup toolchain install ${RUST_VERSION}; \
|
||||
rustup default ${RUST_VERSION}; \
|
||||
rustup target install ${rustarch}-unknown-linux-musl
|
||||
RUN ln -sf /usr/bin/g++ /bin/musl-g++
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user