File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
kafka-prometheus-jmx-exporter Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM openjdk:8u131-jre-alpine
2
+
3
+ ENV EXPORTER_VERSION=8ded2c5e112f8c458e60398c528799ca763c78ac
4
+
5
+ RUN set -e; cd /usr/local; \
6
+ MAVEN_VERSION=3.5.0 PATH=$PATH:$(pwd)/maven/bin; \
7
+ apk add --no-cache --virtual .build-deps \
8
+ curl \
9
+ openjdk8="$JAVA_ALPINE_VERSION" ; \
10
+ mkdir ./maven; \
11
+ curl -SLs https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar -xzf - --strip-components=1 -C ./maven; \
12
+ mvn --version; \
13
+ \
14
+ mkdir ./jmx_exporter; \
15
+ curl -SLs https://github.com/prometheus/jmx_exporter/archive/$EXPORTER_VERSION.tar.gz | tar -xzf - --strip-components=1 -C ./jmx_exporter; \
16
+ cd ./jmx_exporter; \
17
+ mvn package; \
18
+ \
19
+ rm /root/.m2 -Rf; \
20
+ apk del .build-deps;
21
+
22
+ RUN apk add --no-cache bash
23
+
24
+ WORKDIR /usr/local/jmx_exporter
25
+ ENTRYPOINT ["run_sample_httpserver.sh" ]
You can’t perform that action at this time.
0 commit comments