File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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" ]
You can’t perform that action at this time.
0 commit comments