-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
23 lines (18 loc) · 922 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM hauptmedia/java:oracle-java7
ENV DEBIAN_FRONTEND noninteractive
ENV JMETER_VERSION 2.12
ENV JMETER_HOME /opt/jmeter
ENV JMETER_DOWNLOAD_URL https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz
# install needed debian packages & clean up
RUN apt-get update && \
apt-get install -y --no-install-recommends curl tar ca-certificates unzip && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
# download and extract jmeter
RUN mkdir -p ${JMETER_HOME} && \
curl -L --silent ${JMETER_DOWNLOAD_URL} | tar -xz --strip=1 -C ${JMETER_HOME} && \
curl -L --silent http://jmeter-plugins.org/downloads/file/JMeterPlugins-Standard-1.2.1.zip -o /tmp/jmeter-plugins-standard.zip && \
unzip -o -d /opt/jmeter/ /tmp/jmeter-plugins-standard.zip && \
rm /tmp/jmeter-plugins-standard.zip
WORKDIR ${JMETER_HOME}