@@ -10,11 +10,10 @@ ARG TARGETARCH
10
10
ARG TARGETOS
11
11
ARG STACKABLE_USER_UID
12
12
13
- USER ${STACKABLE_USER_UID}
14
13
WORKDIR /stackable
15
14
16
- COPY hadoop/stackable/jmx /stackable/jmx
17
- COPY hadoop/stackable/fuse_dfs_wrapper /stackable/fuse_dfs_wrapper
15
+ COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/jmx /stackable/jmx
16
+ COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/fuse_dfs_wrapper /stackable/fuse_dfs_wrapper
18
17
19
18
# The symlink from JMX Exporter 0.16.1 to the versionless link exists because old HDFS Operators (up until and including 23.7) used to hardcode
20
19
# the version of JMX Exporter like this: "-javaagent:/stackable/jmx/jmx_prometheus_javaagent-0.16.1.jar"
@@ -55,7 +54,7 @@ RUN microdnf update && \
55
54
56
55
WORKDIR /stackable
57
56
58
- COPY hadoop/stackable/patches /stackable/patches
57
+ COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/patches /stackable/patches
59
58
60
59
# Hadoop Pipes requires libtirpc to build, whose headers are not packaged in RedHat UBI, so skip building this module
61
60
# Build from source to enable FUSE module, and to apply custom patches.
@@ -129,7 +128,7 @@ COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/hadoop-${PRODUCT}
129
128
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/jmx /stackable/jmx/
130
129
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/async-profiler /stackable/async-profiler/
131
130
COPY --chown=${STACKABLE_USER_UID}:0 --from=hdfs-utils-builder /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar /stackable/hadoop-${PRODUCT}/share/hadoop/common/lib/hdfs-utils-${HDFS_UTILS}.jar
132
- COPY hadoop/stackable/fuse_dfs_wrapper /stackable/hadoop/bin
131
+ COPY --chown=${STACKABLE_USER_UID}:0 hadoop/stackable/fuse_dfs_wrapper /stackable/hadoop/bin
133
132
134
133
135
134
# fuse is required for fusermount (called by fuse_dfs)
0 commit comments