-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerBuild-Storage
39 lines (31 loc) · 1.52 KB
/
DockerBuild-Storage
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
37
38
39
FROM debian:8.5
RUN echo "deb http://ftp.de.debian.org/debian jessie main" > /etc/apt/source.list \
&& echo "deb http://ftp.de.debian.org/debian jessie-updates main" >> /etc/apt/source.list \
&& echo "deb http://ftp.de.debian.org jessie/updates main" >> /etc/apt/source.list \
&& apt-get clean \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git maven wget \
&& apt-get install -y supervisor
RUN mkdir /opt/jdk \
&& cd /opt/jdk \
&& wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-linux-x64.tar.gz \
&& tar zxf jdk-8u66-linux-x64.tar.gz \
&& rm jdk-8u66-linux-x64.tar.gz \
&& update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_66/bin/java 100 \
&& update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_66/bin/javac 100 \
&& update-alternatives --set java /opt/jdk/jdk1.8.0_66/bin/java \
&& update-alternatives --set javac /opt/jdk/jdk1.8.0_66/bin/javac
# Port on which Jenkins server send the bench results
EXPOSE 9876
# MWG server exposed port
EXPOSE 6547
VOLUME ["/home"]
RUN mkdir /opt/storage-daemon
ADD https://github.com/kevoree-modeling/benchmark/raw/master/storage/exec/server.jar /opt/storage-daemon
ADD supervisord.conf /etc/supervisor/conf.d/
COPY execStorageBench.sh /opt/storage-daemon
RUN chmod +x /opt/storage-daemon/execStorageBench.sh
COPY storage-daemon /etc/init.d/.
RUN chmod 0755 /etc/init.d/storage-daemon
CMD /usr/bin/supervisord