Set SCCACHE_IGNORE_SERVER_IO_ERROR=1

This commit is contained in:
Alexander Bayandin
2024-06-29 11:38:50 +01:00
parent b809391892
commit b7e72e56f8
2 changed files with 2 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ ARG BUILD_TAG
# Enable https://github.com/mozilla/sccache to cache Rust crates' compilation results in Docker builds.
# Set up sccache to use an AWS S3 bucket for cache results, to reuse it between `docker build` invocations.
# sccache falls back to local filesystem if S3 is misconfigured, not failing the build
ARG RUSTC_WRAPPER=sccache
ARG SCCACHE_REGION=eu-central-1
ARG SCCACHE_S3_KEY_PREFIX=sccache

View File

@@ -193,6 +193,8 @@ RUN curl -sSO https://static.rust-lang.org/rustup/dist/$(uname -m)-unknown-linux
rm -rf /home/nonroot/.cargo/registry && \
rm -rf /home/nonroot/.cargo/git
ENV RUSTC_WRAPPER=sccache
# Let sscache to fall back to local filesystem if S3 is misconfigured, not failing the build
ENV SCCACHE_IGNORE_SERVER_IO_ERROR=1
# Show versions
RUN whoami \