diff --git a/CHANGELOG.md b/CHANGELOG.md index ce7fac5e9..37a660376 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,9 +15,11 @@ All notable changes to this project will be documented in this file. ### Fixed - spark-k8s: reduce docker image size by removing the recursive chown/chmods in the final image ([#1042]). +- Add `--locked` flag to `cargo install` commands for reproducible builds ([#1044]). [#1034]: https://github.com/stackabletech/docker-images/pull/1034 [#1042]: https://github.com/stackabletech/docker-images/pull/1042 +[#1044]: https://github.com/stackabletech/docker-images/pull/1044 ## [25.3.0] - 2025-03-21 diff --git a/stackable-base/Dockerfile b/stackable-base/Dockerfile index 3109ef2b5..6735fd52d 100644 --- a/stackable-base/Dockerfile +++ b/stackable-base/Dockerfile @@ -36,7 +36,7 @@ rm -rf /var/cache/yum # WARNING (@NickLarsenNZ): We should pin the rustup version curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$RUST_DEFAULT_TOOLCHAIN_VERSION" -. "$HOME/.cargo/env" && cargo --quiet install cargo-cyclonedx@"$CARGO_CYCLONEDX_CRATE_VERSION" cargo-auditable@"$CARGO_AUDITABLE_CRATE_VERSION" +. "$HOME/.cargo/env" && cargo --quiet install --locked cargo-cyclonedx@"$CARGO_CYCLONEDX_CRATE_VERSION" cargo-auditable@"$CARGO_AUDITABLE_CRATE_VERSION" EOF FROM product-utils-builder AS config-utils diff --git a/ubi8-rust-builder/Dockerfile b/ubi8-rust-builder/Dockerfile index 27541b0af..0e74506da 100644 --- a/ubi8-rust-builder/Dockerfile +++ b/ubi8-rust-builder/Dockerfile @@ -80,7 +80,7 @@ WORKDIR / RUN <