aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-03-12 14:33:57 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-03-12 14:33:57 +0000
commit7ef8f6e58990fc069cccc71ed6564e8c639ea4fc (patch)
tree9e7662a34b7d0c1f1c5d9faf6d7d6ea8672f6410 /Dockerfile
downloadTCPDBench-7ef8f6e58990fc069cccc71ed6564e8c639ea4fc.tar.gz
TCPDBench-7ef8f6e58990fc069cccc71ed6564e8c639ea4fc.zip
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..61f5f840
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,36 @@
+FROM ubuntu:19.04
+
+RUN apt-get update && \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata && \
+ apt-get remove -y python && \
+ apt-get install -y --no-install-recommends \
+ git \
+ build-essential \
+ r-base \
+ latexmk
+
+# Make sure python means python3
+RUN apt-get install -y --no-install-recommends \
+ python3 \
+ python3-dev \
+ python3-pip && \
+ pip3 install --no-cache-dir --upgrade pip setuptools && \
+ echo "alias python='python3'" >> /root/.bash_aliases && \
+ echo "alias pip='pip3'" >> /root/.bash_aliases && \
+ cd /usr/local/bin && ln -s /usr/bin/python3 python && \
+ pip install virtualenv abed
+
+# Clone the dataset repo
+RUN git clone https://github.com/alan-turing-institute/TCPD
+
+# Build the dataset
+RUN cd TCPD && make export
+
+# Clone the repo
+RUN git clone https://github.com/alan-turing-institute/TCPDBench
+
+# Copy the datasets into the benchmark dir
+RUN mkdir -p TCPDBench/datasets && cp TCPD/export/*.json TCPDBench/dataset/
+
+# Set the working directory
+WORKDIR TCPDBench