-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (22 loc) · 827 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
24
25
26
27
28
29
30
31
32
FROM ubuntu:14.04
MAINTAINER Hector Cordero <[email protected]>
ENV JMETER_VERSION 2.13
ENV JMETER_HOME /usr/local/apache-jmeter-${JMETER_VERSION}
ENV JMETER_BIN $JMETER_HOME/bin
ENV RMI_CLIENT_PORT 1099
ENV RMI_SERVER_PORT 9901
RUN set -x && \
apt-get update && \
apt-get -y install openjdk-7-jre-headless wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \
wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz && \
tar -xzf apache-jmeter-${JMETER_VERSION}.tgz -C /usr/local && \
rm apache-jmeter-${JMETER_VERSION}.tgz
ENV PATH $PATH:$JMETER_BIN
COPY scripts/run-container /usr/local/bin/run-container
RUN chmod +x /usr/local/bin/run-container
WORKDIR $JMETER_HOME
EXPOSE $RMI_CLIENT_PORT $RMI_SERVER_PORT
CMD ["run-container"]