Skip to content

Commit d0519c7

Browse files
committed
Add SBOM to final image
1 parent 2c068c2 commit d0519c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nifi/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ if [[ "${PRODUCT}" != 1.* ]] ; then
110110
cp ./nifi-iceberg-services-api-nar/target/nifi-iceberg-services-api-nar-${NIFI_ICEBERG_BUNDLE}.nar /stackable
111111
cp ./nifi-iceberg-services-nar/target/nifi-iceberg-services-nar-${NIFI_ICEBERG_BUNDLE}.nar /stackable
112112
cp ./nifi-iceberg-processors-nar/target/nifi-iceberg-processors-nar-${NIFI_ICEBERG_BUNDLE}.nar /stackable
113+
cp ./target/bom.json /stackable/nifi-iceberg-bundle.sbom.json
113114

114115
cd ..
115116
# Save disk space, even for intermediate images
116117
rm -rf nifi-iceberg-bundle-main
117118

118119
# Set correct groups
119120
chmod g=u /stackable/*.nar
121+
chmod g=u /stackable/*.sbom.json
120122
fi
121123
EOF
122124

@@ -137,6 +139,7 @@ LABEL name="Apache NiFi" \
137139
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/nifi-${PRODUCT} /stackable/nifi-${PRODUCT}/
138140
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/stackable-bcrypt.jar /stackable/stackable-bcrypt.jar
139141
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-iceberg-bundle-builder /stackable/*.nar /stackable/nifi-${PRODUCT}/lib/
142+
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-iceberg-bundle-builder /stackable/*.sbom.json /stackable/nifi-${PRODUCT}/lib/
140143

141144
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/bin /stackable/bin
142145
COPY --chown=${STACKABLE_USER_UID}:0 nifi/licenses /licenses

0 commit comments

Comments
 (0)