-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
34 lines (27 loc) · 1.01 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
FROM ubuntu:17.04
MAINTAINER Ivan Subotic "ivan.subotic@unibas.ch"
# Silence debconf messages
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install.
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get -qq update && \
apt-get -y install \
byobu curl git htop man vim wget unzip \
openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*
# Set environment variables
ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
# Install GraphDB-Free and clean up
RUN \
curl -sS -o /tmp/graphdb.zip -L http://go.pardot.com/e/45622/7a-graphdb-free-8-2-0-dist-zip/4rzsm6/1106070369 && \
unzip /tmp/graphdb.zip -d /tmp && \
mv /tmp/graphdb-free-8.2.0 /graphdb && \
git clone -b develop --single-branch --depth=1 https://github.com/dhlab-basel/Knora.git /knora && \
cp /knora/webapi/scripts/KnoraRules.pie /graphdb && \
rm /tmp/graphdb.zip && \
rm -rf /knora
# Set GraphDB Max and Min Heap size
ENV GDB_HEAP_SIZE="4g"
EXPOSE 7200
CMD ["/graphdb/bin/graphdb"]