forked from denvazh/gatling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gatling 3.3.1, run as uid 1000, gid 1000 (denvazh#27)
- Loading branch information
yayayahei
committed
Apr 29, 2020
1 parent
e91d496
commit fcc688c
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.idea | ||
local.Dockerfile | ||
gatling-charts-highcharts-bundle-3.3.1-bundle.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Gatling is a highly capable load testing tool. | ||
# | ||
# Documentation: https://gatling.io/docs/3.3/ | ||
# Cheat sheet: https://gatling.io/docs/3.3/cheat-sheet/ | ||
|
||
FROM openjdk:8-jdk-alpine | ||
|
||
MAINTAINER Denis Vazhenin <[email protected]> | ||
|
||
RUN apk add --update wget bash libc6-compat | ||
|
||
# gatling version | ||
ENV GATLING_VERSION 3.3.1 | ||
|
||
# gatling user | ||
RUN addgroup -S gatling -g 1000 && adduser -S gatling -G gatling -u 1000 | ||
USER gatling | ||
RUN mkdir /home/gatling/gatling | ||
|
||
# gatling home | ||
ENV GATLING_HOME /home/gatling/gatling | ||
WORKDIR $GATLING_HOME | ||
|
||
# install gatling | ||
RUN mkdir -p /tmp/downloads && \ | ||
wget --show-progress --progress=bar:force -q -O /tmp/downloads/gatling-$GATLING_VERSION.zip https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-bundle/$GATLING_VERSION/gatling-charts-highcharts-bundle-$GATLING_VERSION-bundle.zip | ||
RUN mkdir -p /tmp/archive && \ | ||
unzip /tmp/downloads/gatling-$GATLING_VERSION.zip -d /tmp/archive && \ | ||
mv /tmp/archive/gatling-charts-highcharts-bundle-$GATLING_VERSION/* $GATLING_HOME/ && \ | ||
rm -rf /tmp/* | ||
ENV PATH $GATLING_HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
|
||
# set directories below to be mountable from host | ||
VOLUME ["$GATLING_HOME/conf", "$GATLING_HOME/results", "$GATLING_HOME/user-files"] | ||
|
||
ENTRYPOINT ["gatling.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters