mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 06:44:23 +01:00
osbuilder: Simplify Rust installation
no double export, direct target Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
@@ -234,17 +234,11 @@ generate_dockerfile()
|
|||||||
|
|
||||||
# Rust agent
|
# Rust agent
|
||||||
readonly install_rust="
|
readonly install_rust="
|
||||||
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSLf --output /tmp/rust-init; \
|
ENV http_proxy=${http_proxy:-}
|
||||||
chmod a+x /tmp/rust-init; \
|
ENV https_proxy=${http_proxy:-}
|
||||||
export http_proxy=${http_proxy:-}; \
|
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSLf | \
|
||||||
export https_proxy=${http_proxy:-}; \
|
sh -s -- -y --default-toolchain ${RUST_VERSION} -t ${rustarch}-unknown-linux-${LIBC}
|
||||||
/tmp/rust-init -y --default-toolchain ${RUST_VERSION}
|
RUN . /root/.cargo/env; cargo install cargo-when
|
||||||
RUN . /root/.cargo/env; \
|
|
||||||
export http_proxy=${http_proxy:-}; \
|
|
||||||
export https_proxy=${http_proxy:-}; \
|
|
||||||
cargo install cargo-when; \
|
|
||||||
rustup target install ${rustarch}-unknown-linux-${libc}
|
|
||||||
RUN ln -sf /usr/bin/g++ /bin/musl-g++
|
|
||||||
"
|
"
|
||||||
pushd "${dir}"
|
pushd "${dir}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user