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+
412FROM stackable/image/java-devel AS hbase-builder
513
614ARG PRODUCT
@@ -103,7 +111,7 @@ ARG STACKABLE_USER_UID
103111USER ${STACKABLE_USER_UID}
104112WORKDIR /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}"
165173COPY --chown=${STACKABLE_USER_UID}:0 --from=hbase-builder /stackable/hbase-${PRODUCT} /stackable/hbase-${PRODUCT}/
166174COPY --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
174182COPY --chown=${STACKABLE_USER_UID}:0 --from=hadoop-s3-builder /stackable/bin/export-snapshot-to-s3 /stackable/bin/export-snapshot-to-s3
175183COPY --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
187195RUN <<EOF
188196microdnf update
0 commit comments