Skip to content

Commit c12beb3

Browse files
committed
chore: hadolint fixes
1 parent 756cb26 commit c12beb3

File tree

9 files changed

+41
-21
lines changed

9 files changed

+41
-21
lines changed

airflow/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ARG GIT_SYNC
77
# which should contain a image location (e.g. registry.k8s.io/git-sync/git-sync:v3.6.8)
88
FROM oci.stackable.tech/sdp/git-sync/git-sync:${GIT_SYNC} AS gitsync-image
99

10+
FROM stackable/image/shared/statsd-exporter AS statsd_exporter-builder
11+
1012
FROM python:3.12-bookworm AS opa-auth-manager-builder
1113

1214
COPY airflow/opa-auth-manager/ /tmp/opa-auth-manager
@@ -92,8 +94,8 @@ else
9294
end)' /tmp/sbom.json > /stackable/app/airflow-${PRODUCT}.cdx.json
9395
EOF
9496

95-
COPY --from=stackable/image/shared/statsd-exporter /statsd_exporter/statsd_exporter /stackable/statsd_exporter
96-
COPY --from=stackable/image/shared/statsd-exporter /statsd_exporter/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json /stackable/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json
97+
COPY --from=statsd_exporter-builder /statsd_exporter/statsd_exporter /stackable/statsd_exporter
98+
COPY --from=statsd_exporter-builder /statsd_exporter/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json /stackable/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json
9799
COPY --from=gitsync-image --chown=${STACKABLE_USER_UID}:0 /git-sync /stackable/git-sync
98100

99101
RUN <<EOF

hbase/Dockerfile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4+
FROM stackable/image/hadoop AS hadoop-builder
5+
6+
FROM stackable/image/hbase/phoenix AS phoenix
7+
8+
FROM stackable/image/hbase/hbase-operator-tools AS hbase-operator-tools
9+
10+
FROM stackable/image/hbase/hbase-opa-authorizer AS hbase-opa-authorizer
11+
412
FROM stackable/image/java-devel AS hbase-builder
513

614
ARG PRODUCT
@@ -103,7 +111,7 @@ ARG STACKABLE_USER_UID
103111
USER ${STACKABLE_USER_UID}
104112
WORKDIR /stackable
105113

106-
COPY --from=stackable/image/hadoop --chown=${STACKABLE_USER_UID}:0 \
114+
COPY --from=hadoop-builder --chown=${STACKABLE_USER_UID}:0 \
107115
# The artifact name of the AWS bundle has changed between Haddop 3.3.6 and 3.4.1
108116
# from aws-java-sdk-bundle-*.jar to bundle-*.jar.
109117
# See: https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/aws_sdk_upgrade.html
@@ -165,11 +173,11 @@ LABEL io.k8s.display-name="${NAME}"
165173
COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-builder /stackable/hbase-${PRODUCT} /stackable/hbase-${PRODUCT}/
166174
COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-builder /stackable/async-profiler /stackable/async-profiler/
167175

168-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/hbase/hbase-operator-tools /stackable/hbase-operator-tools-${HBASE_HBASE_OPERATOR_TOOLS} /stackable/hbase-operator-tools-${HBASE_HBASE_OPERATOR_TOOLS}/
169-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/hbase/hbase-operator-tools /stackable/bin/hbck2 /stackable/bin/hbck2
170-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/hbase/hbase-operator-tools /stackable/bin/hbase-entrypoint.sh /stackable/hbase-${PRODUCT}/bin/hbase-entrypoint.sh
176+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-operator-tools /stackable/hbase-operator-tools-${HBASE_HBASE_OPERATOR_TOOLS} /stackable/hbase-operator-tools-${HBASE_HBASE_OPERATOR_TOOLS}/
177+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-operator-tools /stackable/bin/hbck2 /stackable/bin/hbck2
178+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-operator-tools /stackable/bin/hbase-entrypoint.sh /stackable/hbase-${PRODUCT}/bin/hbase-entrypoint.sh
171179

172-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/hbase/phoenix /stackable/phoenix /stackable/phoenix/
180+
COPY --chown=${STACKABLE_USER_UID}:0 --from=phoenix /stackable/phoenix /stackable/phoenix/
173181

174182
COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-s3-builder /stackable/bin/export-snapshot-to-s3 /stackable/bin/export-snapshot-to-s3
175183
COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-s3-builder /stackable/hadoop/share/hadoop/tools/lib/ /stackable/hadoop/share/hadoop/tools/lib/
@@ -178,11 +186,11 @@ COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-s3-builder /stackable/hadoop/
178186
# Storage (ADLS) to /stackable/hbase-${PRODUCT}/lib which is on the classpath.
179187
# hadoop-azure-${HADOOP}.jar contains the AzureBlobFileSystem which is required
180188
# by hadoop-common-${HADOOP}.jar if the scheme of a file system is "abfs://".
181-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/hadoop \
189+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-builder \
182190
/stackable/hadoop/share/hadoop/tools/lib/hadoop-azure-${HADOOP}.jar \
183191
/stackable/hbase-${PRODUCT}/lib/
184192

185-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/hbase/hbase-opa-authorizer /stackable/hbase-opa-authorizer/target/hbase-opa-authorizer*.jar /stackable/hbase-${PRODUCT}/lib
193+
COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-opa-authorizer /stackable/hbase-opa-authorizer/target/hbase-opa-authorizer*.jar /stackable/hbase-${PRODUCT}/lib
186194

187195
RUN <<EOF
188196
microdnf update

kafka-testing-tools/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4+
FROM stackable/image/kafka/kcat AS kcat
5+
46
FROM stackable/image/stackable-base AS final
57

68
ARG PRODUCT
@@ -28,9 +30,9 @@ RUN microdnf install \
2830
&& rm -rf /var/cache/yum
2931

3032
# Store kcat version with binary name and add softlink
31-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/kafka/kcat /stackable/kcat-${KAFKA_KCAT}/kcat /stackable/kcat-${KAFKA_KCAT}
33+
COPY --chown=${STACKABLE_USER_UID}:0 --from=kcat /stackable/kcat-${KAFKA_KCAT}/kcat /stackable/kcat-${KAFKA_KCAT}
3234
RUN ln -s /stackable/kcat-${KAFKA_KCAT} /stackable/kcat
33-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/kafka/kcat /licenses /licenses
35+
COPY --chown=${STACKABLE_USER_UID}:0 --from=kcat /licenses /licenses
3436

3537
COPY --chown=${STACKABLE_USER_UID}:0 kafka-testing-tools/licenses /licenses
3638

kafka/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4+
FROM stackable/image/kafka/kcat AS kcat
5+
46
FROM stackable/image/java-devel AS kafka-builder
57

68
ARG PRODUCT
@@ -63,8 +65,8 @@ LABEL \
6365
COPY --chown=${STACKABLE_USER_UID}:0 --from=kafka-builder /stackable/kafka_${SCALA}-${PRODUCT} /stackable/kafka_${SCALA}-${PRODUCT}
6466
COPY --chown=${STACKABLE_USER_UID}:0 --from=kafka-builder /stackable/kafka_${SCALA}-${PRODUCT}.cdx.json /stackable/kafka_${SCALA}-${PRODUCT}/kafka_${SCALA}-${PRODUCT}.cdx.json
6567
COPY --chown=${STACKABLE_USER_UID}:0 --from=kafka-builder /stackable/jmx/ /stackable/jmx/
66-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/kafka/kcat /stackable/kcat-${KAFKA_KCAT}/kcat /stackable/bin/kcat-${KAFKA_KCAT}
67-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/kafka/kcat /licenses /licenses
68+
COPY --chown=${STACKABLE_USER_UID}:0 --from=kcat /stackable/kcat-${KAFKA_KCAT}/kcat /stackable/bin/kcat-${KAFKA_KCAT}
69+
COPY --chown=${STACKABLE_USER_UID}:0 --from=kcat /licenses /licenses
6870

6971
COPY --chown=${STACKABLE_USER_UID}:0 kafka/licenses /licenses
7072

kafka/kcat/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cd kcat-${PRODUCT}
3939
chmod --recursive g=u /stackable/kcat-${PRODUCT}
4040
EOF
4141

42-
COPY --chown=${STACKABLE_USER_UID}:0 kcat/licenses /licenses
42+
COPY --chown=${STACKABLE_USER_UID}:0 kafka/kcat/licenses /licenses
4343

4444
# SNIPPET 1
4545
# 145.2 gcc -I/stackable/kcat-1.7.0/tmp-bootstrap/usr/include -I/stackable/kcat-1.7.0/tmp-bootstrap/usr/include -g -O2 -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -L/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib -Wl,-rpath-link=/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib -L/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib -Wl,-rpath-link=/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib kcat.o format.o tools.o input.o json.o avro.o -o kcat -lm -ldl -lpthread -lrt -lpthread -lrt -L/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib /stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/libavro.a /stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/libjansson.a -lcurl /stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/libserdes.a -Wl,-Bstatic -lavro -Wl,-Bdynamic /stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/libyajl_s.a -L/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib //stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/librdkafka.a -lm -ldl -lpthread -lrt -lz -lcrypto -lssl -lsasl2 -lm -ldl -lpthread -lrt -lpthread -lrt -L/stackable/kcat-1.7.0/tmp-bootstrap/usr/lib /stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/libavro.a /stackable/kcat-1.7.0/tmp-bootstrap/usr/lib/libjansson.a -lcurl

nifi/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ARG GIT_SYNC
55

66
FROM oci.stackable.tech/sdp/git-sync/git-sync:${GIT_SYNC} AS git-sync-image
77

8+
FROM stackable/image/nifi/iceberg-bundle AS iceberg-bundle-builder
9+
810
FROM stackable/image/java-devel AS nifi-builder
911

1012
ARG PRODUCT
@@ -85,8 +87,8 @@ LABEL name="Apache NiFi" \
8587

8688
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/nifi-${PRODUCT} /stackable/nifi-${PRODUCT}/
8789
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/stackable-bcrypt.jar /stackable/stackable-bcrypt.jar
88-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/nifi/iceberg-bundle /stackable/*.nar /stackable/nifi-${PRODUCT}/lib/
89-
COPY --chown=${STACKABLE_USER_UID}:0 --from=stackable/image/nifi/iceberg-bundle /stackable/*.sbom.json /stackable/nifi-${PRODUCT}/lib/
90+
COPY --chown=${STACKABLE_USER_UID}:0 --from=iceberg-bundle-builder /stackable/*.nar /stackable/nifi-${PRODUCT}/lib/
91+
COPY --chown=${STACKABLE_USER_UID}:0 --from=iceberg-bundle-builder /stackable/*.sbom.json /stackable/nifi-${PRODUCT}/lib/
9092
COPY --chown=${STACKABLE_USER_UID}:0 --from=nifi-builder /stackable/git-sync /stackable/git-sync
9193

9294
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/bin /stackable/bin

superset/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4+
FROM stackable/image/shared/statsd-exporter AS statsd_exporter-builder
5+
46
FROM stackable/image/stackable-base AS opa-authorizer-builder
57

68
ARG PYTHON
@@ -119,8 +121,8 @@ RUN python3 -m venv /stackable/app \
119121
&& if [ -n "$AUTHLIB" ]; then pip install Authlib==${AUTHLIB}; fi && \
120122
uv pip install --no-cache-dir /tmp/opa_authorizer-0.1.0-py3-none-any.whl
121123

122-
COPY --from=stackable/image/shared/statsd-exporter /statsd_exporter/statsd_exporter /stackable/statsd_exporter
123-
COPY --from=stackable/image/shared/statsd-exporter /statsd_exporter/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json /stackable/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json
124+
COPY --from=statsd_exporter-builder /statsd_exporter/statsd_exporter /stackable/statsd_exporter
125+
COPY --from=statsd_exporter-builder /statsd_exporter/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json /stackable/statsd_exporter-${SHARED_STATSD_EXPORTER}.cdx.json
124126

125127
RUN <<EOF
126128
cd /stackable

trino/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4+
FROM stackable/image/trino/storage-connector AS trino-storage-connector-image
5+
46
FROM stackable/image/java-devel AS trino-builder
57

68
ARG PRODUCT
@@ -12,7 +14,7 @@ WORKDIR /stackable
1214
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/patches/patchable.toml /stackable/src/trino/stackable/patches/patchable.toml
1315
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/patches/${PRODUCT} /stackable/src/trino/stackable/patches/${PRODUCT}
1416

15-
COPY --from=stackable/image/trino/storage-connector /stackable/src/trino-storage-connector/patchable-work/worktree/${PRODUCT}/target/trino-storage-${PRODUCT} /stackable/trino-server-${PRODUCT}/plugin/trino-storage-${PRODUCT}
17+
COPY --from=trino-storage-connector-image /stackable/src/trino-storage-connector/patchable-work/worktree/${PRODUCT}/target/trino-storage-${PRODUCT} /stackable/trino-server-${PRODUCT}/plugin/trino-storage-${PRODUCT}
1618
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/jmx /stackable/jmx
1719

1820
# adding a hadolint ignore for SC2215, due to https://github.com/hadolint/hadolint/issues/980

trino/storage-connector/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ ARG STACKABLE_USER_UID
88

99
WORKDIR /stackable
1010

11-
COPY --chown=${STACKABLE_USER_UID}:0 trino-storage-connector/stackable/patches/patchable.toml /stackable/src/trino-storage-connector/stackable/patches/patchable.toml
12-
COPY --chown=${STACKABLE_USER_UID}:0 trino-storage-connector/stackable/patches/${PRODUCT} /stackable/src/trino-storage-connector/stackable/patches/${PRODUCT}
11+
COPY --chown=${STACKABLE_USER_UID}:0 trino/storage-connector/stackable/patches/patchable.toml /stackable/src/trino-storage-connector/stackable/patches/patchable.toml
12+
COPY --chown=${STACKABLE_USER_UID}:0 trino/storage-connector/stackable/patches/${PRODUCT} /stackable/src/trino-storage-connector/stackable/patches/${PRODUCT}
1313

1414
# adding a hadolint ignore for SC2215, due to https://github.com/hadolint/hadolint/issues/980
1515
# hadolint ignore=SC2215

0 commit comments

Comments
 (0)