-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile
32 lines (26 loc) · 1.17 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
FROM alpine:3.18
LABEL Author="NaveenKumar Namachivayam"
LABEL Website="https://qainsights.com"
LABEL Description="Apache JMeter Dockerfile for GitHub Actions with JMeter Plugins"
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" ]