forked from QAInsights/PerfAction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (23 loc) · 1.03 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
FROM artifactory.rtr.cloud/docker/alpine:3.18
ENV JMETER_VERSION "5.6.3"
ENV JMETER_HOME "/opt/apache/apache-jmeter-${JMETER_VERSION}"
ENV JMETER_BIN "${JMETER_HOME}/bin"
ENV PATH "$PATH:$JMETER_BIN"
ENV JMETER_CMD_RUNNER_VERSION "2.3"
ENV JMETER_PLUGIN_MANAGER_VERSION "1.9"
ENV JMETER_PLUGIN_INSTALL_LIST "jpgc-udp,jpgc-graphs-basic"
COPY entrypoint.sh /entrypoint.sh
COPY jmeter-plugin-install.sh /jmeter-plugin-install.sh
# Downloading JMeter
RUN apk --no-cache add curl ca-certificates openjdk17-jre && \
curl -L https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-${JMETER_VERSION}.tgz --output /tmp/apache-jmeter-${JMETER_VERSION}.tgz && \
tar -zxvf /tmp/apache-jmeter-${JMETER_VERSION}.tgz && \
mkdir -p /opt/apache && \
mv apache-jmeter-${JMETER_VERSION} /opt/apache && \
rm /tmp/apache-jmeter-${JMETER_VERSION}.tgz && \
rm -rf /var/cache/apk/* && \
chmod a+x /entrypoint.sh && \
chmod a+x /jmeter-plugin-install.sh
# Downloading CMD Runner
RUN /jmeter-plugin-install.sh
ENTRYPOINT [ "/entrypoint.sh" ]