7
7
FROM stackable/image/java-devel AS builder
8
8
9
9
ARG PRODUCT
10
- ARG JMX_EXPORTER
11
10
ARG STACKABLE_USER_UID
12
11
13
12
# Copy patches into the builder
14
13
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/patches/patchable.toml /stackable/src/zookeeper/stackable/patches/patchable.toml
15
14
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/patches/${PRODUCT} /stackable/src/zookeeper/stackable/patches/${PRODUCT}
16
- # Copy JMX config into the builder
17
- COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/jmx /stackable/jmx
18
15
19
16
USER ${STACKABLE_USER_UID}
20
17
WORKDIR /stackable
@@ -38,12 +35,6 @@ mv zookeeper-assembly/target/bom.json /stackable/apache-zookeeper-${PRODUCT}-bin
38
35
rm -rf /stackable/apache-zookeeper-${PRODUCT}-bin/docs
39
36
rm /stackable/apache-zookeeper-${PRODUCT}-bin/README_packaging.md
40
37
41
- # Download the JMX exporter jar from our own repo
42
- curl "https://repo.stackable.tech/repository/packages/jmx-exporter/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar" \
43
- -o "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar"
44
- chmod +x "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar"
45
- ln -s "/stackable/jmx/jmx_prometheus_javaagent-${JMX_EXPORTER}.jar" /stackable/jmx/jmx_prometheus_javaagent.jar
46
-
47
38
# set correct groups
48
39
chmod -R g=u /stackable
49
40
EOF
@@ -72,7 +63,6 @@ LABEL \
72
63
# Copy over the ZooKeeper binary folder
73
64
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/apache-zookeeper-${PRODUCT}-bin /stackable/apache-zookeeper-${PRODUCT}-bin/
74
65
COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/zookeeper-${PRODUCT}-src.tar.gz /stackable
75
- COPY --chown=${STACKABLE_USER_UID}:0 --from=builder /stackable/jmx /stackable/jmx/
76
66
COPY zookeeper/licenses /licenses
77
67
78
68
RUN <<EOF
@@ -89,7 +79,6 @@ ln -s /stackable/apache-zookeeper-${PRODUCT}-bin/ /stackable/zookeeper
89
79
chown -h ${STACKABLE_USER_UID}:0 /stackable/zookeeper
90
80
91
81
# fix missing permissions
92
- chmod g=u /stackable/jmx
93
82
chmod g=u /stackable/apache-zookeeper-${PRODUCT}-bin/
94
83
EOF
95
84
0 commit comments