From d5688bf6e974893fdb20d09bdff70b592f85263f Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 12 Nov 2021 13:46:43 +0100 Subject: [PATCH] Dockerfile stuff for eventual in-docker Rust builds --- packaging/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packaging/Dockerfile b/packaging/Dockerfile index b1bf2c9..49c5a17 100644 --- a/packaging/Dockerfile +++ b/packaging/Dockerfile @@ -24,3 +24,16 @@ RUN echo "PACKAGER_PRIVKEY=/home/${BUILD_USER}/.abuild/${KEYFILE}" >> /home/${BU USER ${BUILD_USER} WORKDIR /data + +# When (if?) I switch to in-docker Rust builds, the following will be useful. +# +# # Running without proxy for now, to ensure reasonable freshness and consistency: +# # RUN http_proxy=${http_proxy} https_proxy=${http_proxy} rustup-init -y --default-toolchain nightly +# # +# RUN rustup-init -y --default-toolchain nightly +# ENV PATH=/home/${BUILD_USER}/.cargo/bin:$PATH +# # Prime the crates.io index +# RUN cargo search --limit 0 +# +# # Hack to workaround https://github.com/rust-lang/rust/issues/89626 +# ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Zgcc-ld=lld"