Skip to content

Commit eeb27b0

Browse files
authored
chore(stackable-base): Adjust containerdebug source (#1554)
* refactor(stackable-base): Use build args for tool versions * chore(stackable-base): Adjust containerdebug source
1 parent 5b8130e commit eeb27b0

2 files changed

Lines changed: 22 additions & 15 deletions

File tree

stackable-base/Dockerfile

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,21 @@
99

1010
FROM local-image/stackable-devel AS rust-binaries
1111

12-
# Find the latest version here: https://github.com/stackabletech/config-utils/tags
13-
# renovate: datasource=github-tags packageName=stackabletech/config-utils
14-
ENV CONFIG_UTILS_VERSION=0.4.0
15-
# Find the latest version here: https://github.com/stackabletech/containerdebug/tags
16-
# renovate: datasource=github-tags packageName=stackabletech/containerdebug
17-
ENV CONTAINERDEBUG_VERSION=0.4.0
18-
# Find the latest version here: https://github.com/stackabletech/secret-operator/tags
19-
# I could not find support for prefixes or regex in https://docs.renovatebot.com/modules/datasource/github-tags/,
20-
# so I was unable to add a renovate hint.
21-
ENV CERT_TOOLS_VERSION=0.1.1
12+
ARG CONFIG_UTILS_VERSION
13+
ARG CONTAINERDEBUG_VERSION
14+
ARG CERT_TOOLS_VERSION
2215

2316
RUN <<EOF
2417
. "$HOME/.cargo/env"
2518

2619
cd /
2720
git clone --depth 1 --branch "${CONFIG_UTILS_VERSION}" https://github.com/stackabletech/config-utils
28-
git clone --depth 1 --branch "${CONTAINERDEBUG_VERSION}" https://github.com/stackabletech/containerdebug
21+
git clone --depth 1 --branch "containerdebug-${CONTAINERDEBUG_VERSION}" https://github.com/stackabletech/operator-rs
2922
git clone --depth 1 --branch "cert-tools-${CERT_TOOLS_VERSION}" https://github.com/stackabletech/secret-operator
3023
cd /config-utils
3124
cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
32-
cd /containerdebug
33-
cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
25+
cd /operator-rs
26+
cargo auditable --quiet build --package containerdebug --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
3427
cd /secret-operator
3528
cargo auditable --quiet build --release --package cert-tools && cargo cyclonedx --all --spec-version 1.5 --describe binaries
3629
EOF
@@ -184,8 +177,8 @@ COPY --from=rust-binaries --chown=${STACKABLE_USER_UID}:0 /config-utils/config-u
184177

185178
# **containerdebug**
186179
# Debug tool that logs generic system information.
187-
COPY --from=rust-binaries --chown=${STACKABLE_USER_UID}:0 /containerdebug/target/release/containerdebug /stackable/containerdebug
188-
COPY --from=rust-binaries --chown=${STACKABLE_USER_UID}:0 /containerdebug/containerdebug_bin.cdx.xml /stackable/containerdebug_bin.cdx.xml
180+
COPY --from=rust-binaries --chown=${STACKABLE_USER_UID}:0 /operator-rs/target/release/containerdebug /stackable/containerdebug
181+
COPY --from=rust-binaries --chown=${STACKABLE_USER_UID}:0 /operator-rs/crates/containerdebug/containerdebug_bin.cdx.xml /stackable/containerdebug_bin.cdx.xml
189182

190183
# **cert-tools**
191184
# A CLI tool to merge two truststores in PEM or PKCS12 format in such as way that they are accepted by the JVM

stackable-base/boil-config.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,17 @@
22

33
[versions."1.0.0".local-images]
44
stackable-devel = "1.0.0"
5+
6+
[versions."1.0.0".build-arguments]
7+
# Find the latest version here: https://github.com/stackabletech/config-utils/tags
8+
# renovate: datasource=github-tags packageName=stackabletech/config-utils
9+
config-utils-version = "0.4.0"
10+
11+
# Find the latest version here: https://github.com/stackabletech/containerdebug/tags
12+
# renovate: datasource=github-tags packageName=stackabletech/containerdebug
13+
containerdebug-version = "0.4.0"
14+
15+
# Find the latest version here: https://github.com/stackabletech/secret-operator/tags
16+
# I could not find support for prefixes or regex in https://docs.renovatebot.com/modules/datasource/github-tags/,
17+
# so I was unable to add a renovate hint.
18+
cert-tools-version = "0.1.1"

0 commit comments

Comments
 (0)