Skip to content

Commit 6148608

Browse files
committed
fix: copy complete patches directories to include patchable product config
1 parent 02a06a2 commit 6148608

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

druid/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ EOF
3232
USER ${STACKABLE_USER_UID}
3333
WORKDIR /stackable
3434

35-
COPY --chown=${STACKABLE_USER_UID}:0 druid/stackable/patches/${PRODUCT} /stackable/src/druid/stackable/patches/${PRODUCT}
35+
COPY --chown=${STACKABLE_USER_UID}:0 druid/stackable/patches /stackable/src/druid/stackable/patches
3636

3737
# Cache mounts are owned by root by default
3838
# We need to explicitly give the uid to use which is hardcoded to "1000" in stackable-base

hadoop/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ln -s "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar" /stackable/j
5151
EOF
5252

5353
WORKDIR /build
54-
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches/${PRODUCT} /build/src/hadoop/stackable/patches/${PRODUCT}
54+
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches /build/src/hadoop/stackable/patches
5555
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/fuse_dfs_wrapper /build
5656
COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/jmx /stackable/jmx
5757
# Hadoop Pipes requires libtirpc to build, whose headers are not packaged in RedHat UBI, so skip building this module

hbase/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY hbase/licenses /licenses
2626
USER ${STACKABLE_USER_UID}
2727
WORKDIR /stackable
2828

29-
COPY --chown=${STACKABLE_USER_UID}:0 hbase/stackable/patches/${PRODUCT} /stackable/src/hbase/stackable/patches/${PRODUCT}
29+
COPY --chown=${STACKABLE_USER_UID}:0 hbase/stackable/patches /stackable/src/hbase/stackable/patches
3030
COPY --chown=${STACKABLE_USER_UID}:0 hbase/stackable/jmx/config${JMX_EXPORTER} /stackable/jmx
3131

3232
# Cache mounts are owned by root by default
@@ -142,7 +142,7 @@ ARG DELETE_CACHES="true"
142142
# so that they are not expanded. Disabling ShellCheck rules in a Dockerfile
143143
# does not work, so please ignore the according warning (SC2016).
144144
COPY --chown=${STACKABLE_USER_UID}:0 hbase/stackable/bin/hbck2.env /stackable/bin/
145-
COPY --chown=${STACKABLE_USER_UID}:0 hbase/hbase-operator-tools/stackable/patches/${HBASE_OPERATOR_TOOLS} /stackable/src/hbase-operator-tools/stackable/patches/${HBASE_OPERATOR_TOOLS}
145+
COPY --chown=${STACKABLE_USER_UID}:0 hbase/hbase-operator-tools/stackable/patches /stackable/src/hbase-operator-tools/stackable/patches
146146
COPY --chown=${STACKABLE_USER_UID}:0 hbase/stackable/bin/hbase-entrypoint.sh /stackable/bin/
147147

148148
USER ${STACKABLE_USER_UID}
@@ -241,7 +241,7 @@ ARG STACKABLE_USER_UID
241241
# This can be used to speed up builds when disk space is of no concern.
242242
ARG DELETE_CACHES="true"
243243

244-
COPY --chown=${STACKABLE_USER_UID}:0 hbase/phoenix/stackable/patches/${PHOENIX} /stackable/src/phoenix/stackable/patches/${PHOENIX}
244+
COPY --chown=${STACKABLE_USER_UID}:0 hbase/phoenix/stackable/patches /stackable/src/phoenix/stackable/patches
245245
USER ${STACKABLE_USER_UID}
246246
WORKDIR /stackable
247247

hive/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG STACKABLE_USER_UID
2323
ARG DELETE_CACHES="true"
2424

2525
# Copy patches into the builder
26-
COPY --chown=${STACKABLE_USER_UID}:0 hive/stackable/patches/${PRODUCT} /stackable/src/hive/stackable/patches/${PRODUCT}
26+
COPY --chown=${STACKABLE_USER_UID}:0 hive/stackable/patches /stackable/src/hive/stackable/patches
2727
# It is useful to see which version of Hadoop is used at a glance
2828
# Therefore the use of the full name here
2929
# TODO: Do we really need all of Hadoop in here?

kafka/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ USER ${STACKABLE_USER_UID}
1515
WORKDIR /stackable
1616

1717
COPY --chown=${STACKABLE_USER_UID}:0 kafka/stackable/jmx/ /stackable/jmx/
18-
COPY --chown=${STACKABLE_USER_UID}:0 kafka/stackable/patches/${PRODUCT} /stackable/src/kafka/stackable/patches/${PRODUCT}
18+
COPY --chown=${STACKABLE_USER_UID}:0 kafka/stackable/patches /stackable/src/kafka/stackable/patches
1919

2020
RUN <<EOF
2121
cd "$(/stackable/patchable --images-repo-root=src checkout kafka ${PRODUCT})"

nifi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ EOF
3030
USER ${STACKABLE_USER_UID}
3131
WORKDIR /stackable
3232

33-
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/patches/${PRODUCT} /stackable/src/nifi/stackable/patches/${PRODUCT}
33+
COPY --chown=${STACKABLE_USER_UID}:0 nifi/stackable/patches /stackable/src/nifi/stackable/patches
3434

3535
RUN <<EOF
3636
# This used to be located in /bin/stackable-bcrypt.jar. We create a softlink for /bin/stackable-bcrypt.jar in the main container for backwards compatibility.

omid/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ EOF
2121
USER ${STACKABLE_USER_UID}
2222
WORKDIR /stackable
2323

24-
COPY --chown=${STACKABLE_USER_UID}:0 omid/stackable/patches/${PRODUCT} /stackable/src/omid/stackable/patches/${PRODUCT}
24+
COPY --chown=${STACKABLE_USER_UID}:0 omid/stackable/patches /stackable/src/omid/stackable/patches
2525

2626
RUN --mount=type=cache,id=maven-omid-${PRODUCT},uid=${STACKABLE_USER_UID},target=/stackable/.m2/repository <<EOF
2727
set -x

spark-k8s/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ARG STACKABLE_USER_UID
1515

1616
WORKDIR /stackable
1717

18-
COPY --chown=${STACKABLE_USER_UID}:0 spark-k8s/stackable/patches/${PRODUCT} /stackable/src/spark-k8s/stackable/patches/${PRODUCT}
18+
COPY --chown=${STACKABLE_USER_UID}:0 spark-k8s/stackable/patches /stackable/src/spark-k8s/stackable/patches
1919

2020
RUN /stackable/patchable --images-repo-root=src checkout spark-k8s ${PRODUCT}
2121

@@ -42,7 +42,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 --from=spark-source-builder \
4242
# Patch the hbase-connectors source code
4343
WORKDIR /stackable
4444

45-
COPY --chown=${STACKABLE_USER_UID}:0 spark-k8s/hbase-connectors/stackable/patches/${HBASE_CONNECTOR} /stackable/src/spark-k8s/hbase-connectors/stackable/patches/${HBASE_CONNECTOR}
45+
COPY --chown=${STACKABLE_USER_UID}:0 spark-k8s/hbase-connectors/stackable/patches /stackable/src/spark-k8s/hbase-connectors/stackable/patches
4646

4747
RUN <<EOF
4848
cd "$(/stackable/patchable --images-repo-root=src checkout spark-k8s/hbase-connectors ${HBASE_CONNECTOR})/spark"

trino-storage-connector/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG STACKABLE_USER_UID
88

99
WORKDIR /stackable
1010

11-
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 /stackable/src/trino-storage-connector/stackable/patches
1212

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

trino/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARG JMX_EXPORTER
1111

1212
WORKDIR /stackable
1313

14-
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/patches/${PRODUCT} /stackable/src/trino/stackable/patches/${PRODUCT}
14+
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/patches /stackable/src/trino/stackable/patches
1515

1616
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}
1717
COPY --chown=${STACKABLE_USER_UID}:0 trino/stackable/jmx /stackable/jmx

zookeeper/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARG JMX_EXPORTER
1111
ARG STACKABLE_USER_UID
1212

1313
# Copy patches into the builder
14-
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/patches/${PRODUCT} /stackable/src/zookeeper/stackable/patches/${PRODUCT}
14+
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/patches /stackable/src/zookeeper/stackable/patches
1515
# Copy JMX config into the builder
1616
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/jmx /stackable/jmx
1717

0 commit comments

Comments
 (0)