-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (38 loc) · 1.53 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM openjdk:8-jre-slim
ARG JMETER_VERSION
ENV JMETER_VERSION ${JMETER_VERSION:-5.0}
ENV JMETER_HOME /jmeter/apache-jmeter-$JMETER_VERSION/
ENV PATH $JMETER_HOME/bin:$PATH
ENV TEST_DIR /jmeter
ENV IS_UNIX 1
# INSTALL PRE-REQ
RUN apt-get update && \
apt-get -y install \
wget unzip vim httpie tar
# INSTALL JMETER BASE
RUN mkdir /jmeter
WORKDIR /jmeter
RUN wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz && \
tar -xzf apache-jmeter-$JMETER_VERSION.tgz && \
rm apache-jmeter-$JMETER_VERSION.tgz
# mkdir /jmeter-plugins && \
# cd /jmeter-plugins/ && \
# wget https://jmeter-plugins.org/downloads/file/JMeterPlugins-ExtrasLibs-1.4.0.zip && \
# unzip -o JMeterPlugins-ExtrasLibs-1.4.0.zip -d /jmeter/apache-jmeter-$JMETER_VERSION
COPY precipitation precipitation
RUN ./precipitation/setup_precipitation.sh extract
COPY water_level_grid water_level_grid
RUN ./water_level_grid/setup_water-level.sh extract
WORKDIR $JMETER_HOME
EXPOSE 6000 1099 50000
COPY bin/user.properties bin/user.properties
COPY jmeter-scripts/install_plugin-manager.sh .
COPY jmeter-scripts/docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x install_plugin-manager.sh /docker-entrypoint.sh
RUN ./install_plugin-manager.sh
COPY wdias_performance_test.jmx /jmeter/
# https://jmeter-plugins.org/wiki/PluginsManagerAutomated/
RUN bin/PluginsManagerCMD.sh install-for-jmx /jmeter/wdias_performance_test.jmx
WORKDIR /jmeter
COPY . .
ENTRYPOINT ["/docker-entrypoint.sh"]