-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (27 loc) · 1.11 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
FROM openjdk:11.0.10-jre
ENV GATLING_VERSION 3.5.1
ENV KUBECTL_VERSION v1.20.0
ENV AWSCLI_VERSION 2.0.30
RUN mkdir /workdir && cd /workdir
WORKDIR /workdir
RUN apt-get update \
&& apt-get install -y unzip
# install awscli
RUN wget -O awscliv2.zip https://awscli.amazonaws.com/awscli-exe-linux-x86_64-$AWSCLI_VERSION.zip \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf aws*
# install kubectl
RUN wget -O kubectl https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl && \
chmod a+x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
# install gatling
RUN set -o errexit -o nounset && \
echo "Downloading Gatling" && \
wget -O gatling.zip "https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/$GATLING_VERSION/gatling-charts-highcharts-bundle-$GATLING_VERSION-bundle.zip" && \
echo "Installing gatling" && \
unzip gatling.zip && \
mv gatling-charts-highcharts-bundle-$GATLING_VERSION gatling && \
rm gatling.zip
ENV GATLING_HOME=/workdir/gatling
RUN ln -s /workdir/gatling/bin/gatling.sh /usr/local/bin/gatling && chmod a+x /usr/local/bin/gatling