-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (27 loc) · 1.15 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
25
26
27
28
29
30
31
FROM openjdk:8u282-jre-slim-buster
ENV APACHE_JMETER_VERSION=5.4.1
RUN set -ex && \
cd /tmp/ && \
wget -q https://archive.apache.org/dist/jmeter/KEYS && \
wget -q https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${APACHE_JMETER_VERSION}.tgz && \
wget -q https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${APACHE_JMETER_VERSION}.tgz.asc && \
\
apk add --no-cache gnupg && \
gpg --quiet --import KEYS && \
gpg --verify apache-jmeter-${APACHE_JMETER_VERSION}.tgz.asc apache-jmeter-${APACHE_JMETER_VERSION}.tgz && \
\
tar xzf apache-jmeter-${APACHE_JMETER_VERSION}.tgz && \
mv apache-jmeter-${APACHE_JMETER_VERSION} /opt/apache-jmeter && \
\
rm -rf /tmp/* \
/opt/apache-jmeter/NOTICE \
/opt/apache-jmeter/README.md \
/opt/apache-jmeter/docs \
/opt/apache-jmeter/extras \
/opt/apache-jmeter/printable_docs \
/opt/apache-jmeter/bin/examples \
/opt/apache-jmeter/bin/*.bat \
/opt/apache-jmeter/bin/*.cmd \
/opt/apache-jmeter/bin/*.bshrc
COPY log4j2.xml /opt/apache-jmeter/bin/log4j2.xml
ENTRYPOINT ["/opt/apache-jmeter/bin/jmeter"]