-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (24 loc) · 1.06 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
35
36
# Pull base image.
FROM openjdk:8-jdk
MAINTAINER Thomas Modeneis <[email protected]>
# update dpkg repositories
RUN apt-get update
# install wget
RUN apt-get install -y wget
RUN mkdir /opt/maven
RUN mkdir /opt/soujava-test-kit
# download maven
RUN wget --no-verbose -O /tmp/apache-maven-3.0.5.tar.gz http://archive.apache.org/dist/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
# install maven
RUN tar -C /opt/maven -xzf /tmp/apache-maven-3.0.5.tar.gz --strip-components=1
ENV MAVEN_HOME=/opt/maven
ENV MAVEN_OPTS="-Xmx1048m -Xms256m -XX:MaxPermSize=312M"
ENV PATH $MAVEN_HOME/bin:$PATH
COPY . /opt/soujava-test-kit
WORKDIR /opt/soujava-test-kit
RUN mvn clean install
WORKDIR /opt/soujava-test-kit/gatling
RUN mvn clean gatling:execute -Dgatling.simulationClass=soujava.BenchmarkGeneric -DNUM_THREADS=1 -DRAMP_TIME=1 -DDURATION=10 -DTARGET=http://vertx-simple-json-endpoint.herokuapp.com -DENDPOINT=/hello -DENDPOINT_NAME=HELLO_WORLD_VERTEX
VOLUME ["/opt/soujava-test-kit/gatling/target/gatling"]
ENTRYPOINT ["/opt/soujava-test-kit/gatling"]
CMD ["mvn"]