@@ -9,6 +9,9 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:c0e70387664f30cd9cf2795b
9
9
# Find the latest version here: https://github.com/stackabletech/config-utils/tags
10
10
# renovate: datasource=github-tags packageName=stackabletech/config-utils
11
11
ENV CONFIG_UTILS_VERSION=0.2.0
12
+ # Find the latest version here: https://github.com/stackabletech/containerdebug/tags
13
+ # renovate: datasource=github-tags packageName=stackabletech/containerdebug
14
+ ENV CONTAINERDEBUG_VERSION=0.1.0
12
15
# This SHOULD be kept in sync with operator-templating and other tools to reduce build times
13
16
# Find the latest version here: https://doc.rust-lang.org/stable/releases.html
14
17
# renovate: datasource=github-releases packageName=rust-lang/rust
@@ -33,13 +36,26 @@ rm -rf /var/cache/yum
33
36
34
37
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "$RUST_DEFAULT_TOOLCHAIN_VERSION"
35
38
. "$HOME/.cargo/env" && cargo --quiet install cargo-cyclonedx@"$CARGO_CYCLONEDX_CRATE_VERSION" cargo-auditable@"$CARGO_AUDITABLE_CRATE_VERSION"
39
+ EOF
40
+
41
+ FROM product-utils-builder AS config-utils
36
42
43
+ RUN <<EOF
37
44
git clone --depth 1 --branch "${CONFIG_UTILS_VERSION}" https://github.com/stackabletech/config-utils
38
45
cd ./config-utils
39
46
. "$HOME/.cargo/env"
40
47
cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
41
48
EOF
42
49
50
+ FROM product-utils-builder AS containerdebug
51
+
52
+ RUN <<EOF
53
+ git clone --depth 1 --branch "${CONTAINERDEBUG_VERSION}" https://github.com/stackabletech/containerdebug
54
+ cd ./containerdebug
55
+ . "$HOME/.cargo/env"
56
+ cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
57
+ EOF
58
+
43
59
# Find the latest version at https://catalog.redhat.com/software/containers/ubi9/ubi-minimal/615bd9b4075b022acc111bf5?container-tabs=gti
44
60
# IMPORTANT: Make sure to use the "Manifest List Digest" that references the images for multiple architectures
45
61
# rather than just the "Image Digest" that references the image for the selected architecture.
@@ -178,8 +194,13 @@ if [ "$(trust list --filter=ca-anchors | grep -c 'E-Tugra')" != "0" ]; then
178
194
fi
179
195
EOF
180
196
181
- COPY --from=product-utils-builder --chown=${STACKABLE_USER_UID}:0 /config-utils/target/release/config-utils /stackable/config-utils
182
- COPY --from=product-utils-builder --chown=${STACKABLE_USER_UID}:0 /config-utils/config-utils_bin.cdx.xml /stackable/config-utils.cdx.xml
197
+ COPY --from=config-utils --chown=${STACKABLE_USER_UID}:0 /config-utils/target/release/config-utils /stackable/config-utils
198
+ COPY --from=config-utils --chown=${STACKABLE_USER_UID}:0 /config-utils/config-utils_bin.cdx.xml /stackable/config-utils.cdx.xml
199
+
200
+ # **containerdebug**
201
+ # Debug tool that logs generic system information.
202
+ COPY --from=containerdebug --chown=${STACKABLE_USER_UID}:0 /containerdebug/target/release/containerdebug /stackable/containerdebug
203
+
183
204
ENV PATH="${PATH}:/stackable"
184
205
185
206
# These labels have mostly been superceded by the OpenContainer spec annotations below but it doesn't hurt to include them
0 commit comments