mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
osbuilder: Simplify Rust installation
no double export, direct target Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
parent
0072cc2b66
commit
2c86b956fa
@ -210,17 +210,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}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user