-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (16 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG ZEEBE_VERSION=8.1.4
FROM alpine:latest as unzipper
ARG ZEEBE_KAFKA_EXPORTER_VERSION=3.1.1
ARG ZEEBE_HAZELCAST_EXPORTER_VERSION=1.2.1
RUN apk add unzip curl
# download & unzip kafka exporter
RUN curl -L https://github.com/camunda-community-hub/zeebe-kafka-exporter/releases/download/${ZEEBE_KAFKA_EXPORTER_VERSION}/zeebe-kafka-exporter-${ZEEBE_KAFKA_EXPORTER_VERSION}.zip -o /tmp/zeebe-kafka-exporter.zip && \
unzip /tmp/zeebe-kafka-exporter.zip -d /tmp && \
mv /tmp/target/nexus-staging/deferred/io/zeebe/zeebe-kafka-exporter/${ZEEBE_KAFKA_EXPORTER_VERSION}/zeebe-kafka-exporter-${ZEEBE_KAFKA_EXPORTER_VERSION}-jar-with-dependencies.jar /opt/zeebe-kafka-exporter.jar
# download hazelcast exporter
RUN curl -L https://github.com/camunda-community-hub/zeebe-hazelcast-exporter/releases/download/${ZEEBE_HAZELCAST_EXPORTER_VERSION}/zeebe-hazelcast-exporter-${ZEEBE_HAZELCAST_EXPORTER_VERSION}-jar-with-dependencies.jar -o /opt/zeebe-hazelcast-exporter.jar
FROM camunda/zeebe:${ZEEBE_VERSION}
ADD kafka/kafka-exporter.yml \
hazelcast/hazelcast-exporter.yml \
/usr/local/zeebe/config/
COPY --from=unzipper /opt/*.jar /usr/local/zeebe/lib/