-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (19 loc) · 818 Bytes
/
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
FROM openjdk:latest
MAINTAINER Michael Rayva <mrayva@gmail.com>
# Add DSE group and user
RUN groupadd -r grakn \
&& useradd -r -g grakn grakn
ARG GRAKN_VERSION
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends lsof \
&& rm -rf /var/lib/apt/lists/*
RUN wget "https://github.com/graknlabs/grakn/releases/download/v$GRAKN_VERSION/grakn-dist-$GRAKN_VERSION.zip" -P /opt
RUN unzip /opt/grakn-dist-$GRAKN_VERSION.zip -d /opt \
&& rm /opt/grakn-dist-$GRAKN_VERSION.zip
RUN ln -s /opt/grakn-dist-$GRAKN_VERSION/ /opt/grakn \
&& chown -R grakn:grakn /opt/grakn \
&& sed -i "s/ai.grakn.engine.GraknEngineServer &/ai.grakn.engine.GraknEngineServer/" /opt/grakn/bin/grakn-engine.sh
EXPOSE 4567
ENTRYPOINT [ "/opt/grakn/bin/grakn.sh" ]
CMD ["start"]