Skip to content

Commit be2b7a2

Browse files
committed
feat(stackable-base): Add cert-tools
1 parent 27ce8a3 commit be2b7a2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

stackable-base/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ cd ./containerdebug
3333
cargo auditable --quiet build --release && cargo cyclonedx --all --spec-version 1.5 --describe binaries
3434
EOF
3535

36+
FROM stackable/image/stackable-devel AS cert-tools
37+
38+
RUN echo bye bye cache 2
39+
40+
RUN <<EOF
41+
git clone --depth 1 --branch feat/truststore-merger https://github.com/stackabletech/secret-operator
42+
cd ./secret-operator
43+
. "$HOME/.cargo/env"
44+
cargo auditable --quiet build --release --package cert-tools && cargo cyclonedx --all --spec-version 1.5 --describe binaries
45+
EOF
46+
3647
# Find the latest version at https://catalog.redhat.com/software/containers/ubi9/ubi-minimal/615bd9b4075b022acc111bf5?container-tabs=gti
3748
# IMPORTANT: Make sure to use the "Manifest List Digest" that references the images for multiple architectures
3849
# rather than just the "Image Digest" that references the image for the selected architecture.
@@ -174,12 +185,20 @@ if [ "$(trust list --filter=ca-anchors | grep -c 'E-Tugra')" != "0" ]; then
174185
fi
175186
EOF
176187

188+
# **config-utils**
189+
# Utility to replace values in a file with values from environment variables and files
177190
COPY --from=config-utils --chown=${STACKABLE_USER_UID}:0 /config-utils/target/release/config-utils /stackable/config-utils
178191
COPY --from=config-utils --chown=${STACKABLE_USER_UID}:0 /config-utils/config-utils_bin.cdx.xml /stackable/config-utils.cdx.xml
179192

180193
# **containerdebug**
181194
# Debug tool that logs generic system information.
182195
COPY --from=containerdebug --chown=${STACKABLE_USER_UID}:0 /containerdebug/target/release/containerdebug /stackable/containerdebug
196+
COPY --from=containerdebug --chown=${STACKABLE_USER_UID}:0 /containerdebug/containerdebug_bin.cdx.xml /stackable/containerdebug_bin.cdx.xml
197+
198+
# **cert-tools**
199+
# A CLI tool to merge two truststores in PEM or PKCS12 format in such as way that they are accepted by the JVM
200+
COPY --from=cert-tools --chown=${STACKABLE_USER_UID}:0 /secret-operator/target/release/cert-tools /stackable/cert-tools
201+
COPY --from=cert-tools --chown=${STACKABLE_USER_UID}:0 /secret-operator/rust/cert-tools/cert-tools_bin.cdx.xml /stackable/cert-tools_bin.cdx.xml
183202

184203
# **check-permissions-ownership.sh**
185204
# Bash script to check proper permissions and ownership requirements in the final Stackable images

0 commit comments

Comments
 (0)