Skip to content

Commit

Permalink
add gatling 3.3.1, run as uid 1000, gid 1000 (denvazh#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
yayayahei committed Apr 29, 2020
1 parent e91d496 commit fcc688c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
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
36 changes: 36 additions & 0 deletions 3.3.1/Dockerfile
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"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
* 3.1.2
* 3.1.3
* 3.2.0
* 3.2.1 (latest)
* 3.2.1
* 3.3.1 (latest)

[![CircleCI](https://circleci.com/gh/denvazh/gatling/tree/master.svg?style=svg)](https://circleci.com/gh/denvazh/gatling/tree/master)
[![](https://images.microbadger.com/badges/image/denvazh/gatling.svg)](http://microbadger.com/images/denvazh/gatling "Get your own image badge on microbadger.com")
Expand Down

0 comments on commit fcc688c

Please sign in to comment.