Skip to content

Commit 49f9cd6

Browse files
committed
Merge pull request #19 from psiinon/master
Dockerfile for a container that pulls down and runs the latest version of Benchmark
2 parents 55a3b6c + 77a627e commit 49f9cd6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

VMs/Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This dockerfile builds a container that pulls down and runs the latest version of Benchmark
2+
FROM ubuntu:15.04
3+
MAINTAINER Simon Bennetts "psiinon@gmail.com"
4+
5+
RUN apt-get update && apt-get clean
6+
RUN apt-get install -q -y make automake autoconf gcc g++ openjdk-7-jre-headless openjdk-7-jdk ruby wget curl xmlstarlet unzip git x11vnc xvfb openbox xterm net-tools ruby-dev && apt-get clean
7+
RUN apt-get --assume-yes --fix-missing install python-pip x11vnc
8+
9+
RUN mkdir /benchmark
10+
WORKDIR /benchmark
11+
RUN wget http://archive.apache.org/dist/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz
12+
RUN tar -xzf apache-maven-3.2.3-bin.tar.gz
13+
RUN cp -R apache-maven-3.2.3 /usr/local
14+
RUN ln -s /usr/local/apache-maven-3.2.3/bin/mvn /usr/bin/mvn
15+
16+
ENV bench /benchmark/bench.sh
17+
RUN echo "#!/bin/sh" > ${bench}
18+
RUN echo "git clone https://github.com/OWASP/benchmark" >> ${bench}
19+
RUN echo "cd benchmark" >> ${bench}
20+
RUN echo "mvn compile" >> ${bench}
21+
RUN echo "chmod +x runRemoteAccessibleBenchmark.sh" >> ${bench}
22+
RUN echo "./runRemoteAccessibleBenchmark.sh" >> ${bench}
23+
RUN chmod a+x ${bench}
24+
25+
RUN useradd -d /home/bench -m -s /bin/bash bench
26+
RUN echo bench:bench | chpasswd
27+
28+
RUN chown -R bench /benchmark/
29+
ENV PATH /benchmark/benchmark/:$PATH
30+
31+
CMD ["/benchmark/bench.sh"]

0 commit comments

Comments
 (0)