-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
32 lines (23 loc) · 964 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
29
30
31
32
FROM openjdk:8-alpine
MAINTAINER Benjamin Ricaud <[email protected]>
# Install tools
RUN apk update && \
apk add wget unzip git bash curl ca-certificates dumb-init && \
update-ca-certificates
# Install the server
RUN wget -O /gremlin.zip http://mirror.cc.columbia.edu/pub/software/apache/tinkerpop/3.4.0/apache-tinkerpop-gremlin-server-3.4.0-bin.zip && \
unzip /gremlin.zip -d /gremlin && \
rm /gremlin.zip
WORKDIR /gremlin/apache-tinkerpop-gremlin-server-3.4.0
# Place where the graph is saved, see gremlin-graph.properties
RUN mkdir /graph_file
# Configure gremlin for python
RUN bin/gremlin-server.sh install org.apache.tinkerpop gremlin-python 3.4.0
EXPOSE 8182
# Copy the configuration files
COPY files .
# Use the dumb-init init system to correctly forward shutdown signals to gremlin-server
ENTRYPOINT ["/usr/bin/dumb-init", "--rewrite", "15:2", "--"]
# Launch
RUN chmod 700 startup_commands.sh
CMD ["./startup_commands.sh"]