forked from hhcordero/docker-jmeter-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 751 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 751 Bytes
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
FROM ubuntu:20.04
ENV JMETER_VERSION 5.6.2
ENV JMETER_HOME /usr/local/apache-jmeter-${JMETER_VERSION}
ENV JMETER_BIN $JMETER_HOME/bin
ENV IP 127.0.0.1
ENV RMI_PORT 1099
RUN apt-get -qq update && \
apt-get -yqq install openjdk-11-jre unzip && \
apt-get -q clean && \
rm -rf /var/lib/apt/lists/*
COPY ./dependencies /tmp/dependencies
RUN tar -xzf /tmp/dependencies/apache-jmeter-${JMETER_VERSION}.tgz -C /usr/local && \
unzip -oq "/tmp/dependencies/JMeterPlugins-*.zip" -d $JMETER_HOME && \
apt-get -yqq purge unzip && \
apt-get -yqq autoremove && \
rm -rf /tmp/dependencies
ENV PATH $PATH:$JMETER_BIN
WORKDIR $JMETER_HOME
EXPOSE $RMI_PORT
COPY ./docker-entrypoint.sh /root
ENTRYPOINT ["/root/docker-entrypoint.sh"]