Skip to content

Commit 251a57e

Browse files
committed
1 parent b789a67 commit 251a57e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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"]

0 commit comments

Comments
 (0)