docker: Increase caching; explicit serialization to force convergence.
docker: Adjust profile overrides Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -27,7 +27,7 @@ RUN \
|
|||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst}/${cargo_tgt_sub},sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst},sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ RUN \
|
|||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst}/${cargo_tgt_sub},sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst},sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/debian,id=${cargo_tgt_dst}/debian,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/debian,id=${cargo_tgt_dst}/debian,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
||||||
|
|||||||
@@ -12,10 +12,13 @@ ARG cargo_tgt_sub
|
|||||||
ARG cargo_tgt_cache
|
ARG cargo_tgt_cache
|
||||||
ARG CARGO_BUILD_RUSTFLAGS
|
ARG CARGO_BUILD_RUSTFLAGS
|
||||||
ARG CARGO_PROFILE_TEST_DEBUG
|
ARG CARGO_PROFILE_TEST_DEBUG
|
||||||
|
ARG CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG
|
||||||
|
ARG CARGO_PROFILE_TEST_INCREMENTAL
|
||||||
ARG CARGO_PROFILE_BENCH_DEBUG
|
ARG CARGO_PROFILE_BENCH_DEBUG
|
||||||
|
ARG CARGO_PROFILE_BENCH_BUILD_OVERRIDE_DEBUG
|
||||||
ARG CARGO_PROFILE_BENCH_LTO
|
ARG CARGO_PROFILE_BENCH_LTO
|
||||||
ARG CARGO_PROFILE_BENCH_CODEGEN_UNITS
|
|
||||||
ARG CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG
|
ARG CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG
|
||||||
|
ARG CARGO_PROFILE_RELEASE_LTO
|
||||||
ARG cargo_profile
|
ARG cargo_profile
|
||||||
ARG cargo_features
|
ARG cargo_features
|
||||||
ARG cargo_spec_features
|
ARG cargo_spec_features
|
||||||
@@ -34,15 +37,18 @@ COPY --link --from=recipe recipe.json .
|
|||||||
ENV CARGO_TARGET_DIR="${CARGO_TARGET_DIR}"
|
ENV CARGO_TARGET_DIR="${CARGO_TARGET_DIR}"
|
||||||
ENV CARGO_BUILD_RUSTFLAGS="${CARGO_BUILD_RUSTFLAGS}"
|
ENV CARGO_BUILD_RUSTFLAGS="${CARGO_BUILD_RUSTFLAGS}"
|
||||||
ENV CARGO_PROFILE_TEST_DEBUG="${CARGO_PROFILE_TEST_DEBUG}"
|
ENV CARGO_PROFILE_TEST_DEBUG="${CARGO_PROFILE_TEST_DEBUG}"
|
||||||
|
ENV CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG="${CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG}"
|
||||||
|
ENV CARGO_PROFILE_TEST_INCREMENTAL="${CARGO_PROFILE_TEST_INCREMENTAL}"
|
||||||
ENV CARGO_PROFILE_BENCH_DEBUG="${CARGO_PROFILE_BENCH_DEBUG}"
|
ENV CARGO_PROFILE_BENCH_DEBUG="${CARGO_PROFILE_BENCH_DEBUG}"
|
||||||
|
ENV CARGO_PROFILE_BENCH_BUILD_OVERRIDE_DEBUG="${CARGO_PROFILE_BENCH_BUILD_OVERRIDE_DEBUG}"
|
||||||
ENV CARGO_PROFILE_BENCH_LTO="${CARGO_PROFILE_BENCH_LTO}"
|
ENV CARGO_PROFILE_BENCH_LTO="${CARGO_PROFILE_BENCH_LTO}"
|
||||||
ENV CARGO_PROFILE_BENCH_CODEGEN_UNITS="${CARGO_PROFILE_BENCH_CODEGEN_UNITS}"
|
|
||||||
ENV CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG="${CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG}"
|
ENV CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG="${CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG}"
|
||||||
|
ENV CARGO_PROFILE_RELEASE_LTO="${CARGO_PROFILE_RELEASE_LTO}"
|
||||||
RUN \
|
RUN \
|
||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst}/${cargo_tgt_sub},sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst},sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ RUN \
|
|||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst}/${cargo_tgt_sub},sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst},sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ RUN \
|
|||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=shared,ro \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst}/${cargo_tgt_sub},sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR},id=${cargo_tgt_dst},sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/deps,id=${cargo_tgt_cache}/deps,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/build,id=${cargo_tgt_cache}/build,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
--mount=type=cache,dst=${CARGO_TARGET_DIR}/${cargo_tgt_sub}/incremental,id=${cargo_tgt_cache}/incremental,sharing=locked \
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ WORKDIR /
|
|||||||
COPY --link --from=input . .
|
COPY --link --from=input . .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
@@ -156,6 +157,7 @@ ARG complement_run=".*"
|
|||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||||
--mount=type=cache,dst=/go/pkg/mod/cache,sharing=locked \
|
--mount=type=cache,dst=/go/pkg/mod/cache,sharing=locked \
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ COPY --link --from=input . .
|
|||||||
|
|
||||||
ENV CARGO_TARGET="${rust_target}"
|
ENV CARGO_TARGET="${rust_target}"
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN <<EOF
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
|
<<EOF
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
url="https://static.rust-lang.org/rustup/archive/${rustup_version}/${rust_target}/rustup-init"
|
url="https://static.rust-lang.org/rustup/archive/${rustup_version}/${rust_target}/rustup-init"
|
||||||
@@ -24,6 +26,7 @@ EOF
|
|||||||
ENV RUSTUP_HOME="${RUSTUP_HOME}"
|
ENV RUSTUP_HOME="${RUSTUP_HOME}"
|
||||||
ENV CARGO_HOME="${CARGO_HOME}"
|
ENV CARGO_HOME="${CARGO_HOME}"
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
||||||
@@ -56,6 +59,7 @@ WORKDIR /
|
|||||||
COPY --link --from=input . .
|
COPY --link --from=input . .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
||||||
@@ -66,10 +70,16 @@ RUN \
|
|||||||
--target ${rust_target} \
|
--target ${rust_target} \
|
||||||
${rustup_components} \
|
${rustup_components} \
|
||||||
;
|
;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
||||||
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
||||||
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
||||||
|
<<EOF
|
||||||
rustup run --install ${rust_toolchain} \
|
rustup run --install ${rust_toolchain} \
|
||||||
cargo install \
|
cargo install \
|
||||||
--quiet \
|
|
||||||
--locked \
|
--locked \
|
||||||
--target ${rust_target} \
|
--target ${rust_target} \
|
||||||
${cargo_installs} \
|
${cargo_installs} \
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ COPY --link --from=input . .
|
|||||||
|
|
||||||
ENV packages="ca-certificates ${packages}"
|
ENV packages="ca-certificates ${packages}"
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
@@ -38,6 +39,7 @@ WORKDIR /
|
|||||||
COPY --link --from=input . .
|
COPY --link --from=input . .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
@@ -54,6 +56,7 @@ WORKDIR /
|
|||||||
COPY --link --from=input . .
|
COPY --link --from=input . .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ COPY --link --from=input . .
|
|||||||
ADD --link --keep-git-dir . /usr/src/tuwunel
|
ADD --link --keep-git-dir . /usr/src/tuwunel
|
||||||
WORKDIR /usr/src/tuwunel
|
WORKDIR /usr/src/tuwunel
|
||||||
RUN \
|
RUN \
|
||||||
--mount=type=cache,dst=/var/lock/uwu/source,sharing=locked \
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
set -eux
|
set -eux
|
||||||
git reset \
|
git reset \
|
||||||
@@ -43,6 +43,7 @@ ENV JEMALLOC_OVERRIDE="${JEMALLOC_OVERRIDE}"
|
|||||||
#ENV ZSTD_SYS_USE_PKG_CONFIG="${ZSTD_SYS_USE_PKG_CONFIG}"
|
#ENV ZSTD_SYS_USE_PKG_CONFIG="${ZSTD_SYS_USE_PKG_CONFIG}"
|
||||||
ENV ROCKSDB_LIB_DIR="${ROCKSDB_LIB_DIR}"
|
ENV ROCKSDB_LIB_DIR="${ROCKSDB_LIB_DIR}"
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
||||||
@@ -68,11 +69,10 @@ ARG RUSTUP_HOME
|
|||||||
ARG CARGO_HOME
|
ARG CARGO_HOME
|
||||||
ARG CARGO_TARGET
|
ARG CARGO_TARGET
|
||||||
|
|
||||||
WORKDIR /
|
|
||||||
COPY --link --from=input . .
|
|
||||||
|
|
||||||
WORKDIR /usr/src/tuwunel
|
WORKDIR /usr/src/tuwunel
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
--mount=type=cache,dst=${RUSTUP_HOME}/downloads,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/registry,sharing=locked \
|
||||||
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
--mount=type=cache,dst=${CARGO_HOME}/git,sharing=locked \
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ ${packages} \
|
|||||||
"
|
"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ COPY --link --from=input . .
|
|||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
COPY --link --from=recipe rocksdb.url .
|
COPY --link --from=recipe rocksdb.url .
|
||||||
|
|
||||||
RUN <<EOF
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/rocksdb,sharing=locked \
|
||||||
|
<<EOF
|
||||||
set -eux
|
set -eux
|
||||||
submodule="librocksdb-sys/rocksdb"
|
submodule="librocksdb-sys/rocksdb"
|
||||||
url="$(cat rocksdb.url)"
|
url="$(cat rocksdb.url)"
|
||||||
@@ -45,6 +48,7 @@ ENV CC="clang"
|
|||||||
ENV CXX="clang++"
|
ENV CXX="clang++"
|
||||||
ENV nprocs=${nprocs}
|
ENV nprocs=${nprocs}
|
||||||
RUN \
|
RUN \
|
||||||
|
--mount=type=cache,dst=/var/lock/uwu/local,sharing=locked \
|
||||||
--mount=type=cache,dst=/var/lock/uwu/rocksdb,sharing=locked \
|
--mount=type=cache,dst=/var/lock/uwu/rocksdb,sharing=locked \
|
||||||
<<EOF
|
<<EOF
|
||||||
set -eux
|
set -eux
|
||||||
|
|||||||
@@ -1107,10 +1107,13 @@ target "deps-base" {
|
|||||||
)
|
)
|
||||||
|
|
||||||
CARGO_PROFILE_TEST_DEBUG = "false"
|
CARGO_PROFILE_TEST_DEBUG = "false"
|
||||||
CARGO_PROFILE_BENCH_DEBUG = "false"
|
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG = "false"
|
||||||
|
CARGO_PROFILE_TEST_INCREMENTAL = "false"
|
||||||
|
CARGO_PROFILE_BENCH_DEBUG = "limited"
|
||||||
|
CARGO_PROFILE_BENCH_BUILD_OVERRIDE_DEBUG = "false"
|
||||||
CARGO_PROFILE_BENCH_LTO = "false"
|
CARGO_PROFILE_BENCH_LTO = "false"
|
||||||
CARGO_PROFILE_BENCH_CODEGEN_UNITS = "1"
|
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG = "false"
|
||||||
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG = "true"
|
CARGO_PROFILE_RELEASE_LTO = "thin"
|
||||||
|
|
||||||
CARGO_BUILD_RUSTFLAGS = (
|
CARGO_BUILD_RUSTFLAGS = (
|
||||||
cargo_profile == "release-max-perf"?
|
cargo_profile == "release-max-perf"?
|
||||||
@@ -1256,7 +1259,6 @@ target "recipe" {
|
|||||||
elem_tag("recipe", [rust_toolchain, rust_target, feat_set, sys_name, sys_version, sys_target], "latest")
|
elem_tag("recipe", [rust_toolchain, rust_target, feat_set, sys_name, sys_version, sys_target], "latest")
|
||||||
]
|
]
|
||||||
target = "recipe"
|
target = "recipe"
|
||||||
output = ["type=cacheonly,compression=zstd,mode=min"]
|
|
||||||
matrix = rust_feat_sys
|
matrix = rust_feat_sys
|
||||||
inherits = [
|
inherits = [
|
||||||
elem("preparing", [rust_toolchain, rust_target, feat_set, sys_name, sys_version, sys_target])
|
elem("preparing", [rust_toolchain, rust_target, feat_set, sys_name, sys_version, sys_target])
|
||||||
|
|||||||
Reference in New Issue
Block a user