-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (35 loc) · 1.35 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
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:16.04
#
# IGUANA Benchmark in a Docker container
# Basic structure of that Docker container:
# /iguana/ Main folder which contains all relevant files and folders
# /iguana-jars/ Contains neccessary jar-files required by the Benchmark
# /results/ Contains resulting data generated by the Benchmark
# /config.xml Config file
# /queries.txt Queries file
# /start.sh To start the benchmark (autostart)
#
MAINTAINER Simeon Ackermann <[email protected]>
MAINTAINER Konrad Abicht <[email protected]>
# Let the conatiner know that there is no tty
ENV DEBIAN_FRONTEND noninteractive
# update package index
RUN apt-get clean && apt-get update
# install some java
RUN apt-get install -y netcat openjdk-8-jre
# create /iguana
RUN mkdir /iguana
# add config.xml and queries.txt
ADD config.xml /iguana/config.xml
ADD queries.txt /iguana/queries.txt
# /iguana/jars will contain all required jar files
RUN mkdir /iguana/iguana-jars
# put Jars into the Docker
ADD iguana-jars /iguana/iguana-jars
# results folder will contain resulting data (e.g. diagrams, stats, ...)
RUN mkdir /iguana/results
# add start script to execute the benchmark
ADD start.sh /iguana/start.sh
WORKDIR /iguana
# execute the start script with parameters
CMD ["/bin/bash", "/iguana/start.sh", "./iguana-jars/", "config.xml", "queries.txt"]