-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (21 loc) · 935 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
FROM ubuntu
RUN apt-get update && apt-get install -y wget unzip git bash curl ca-certificates dumb-init nano
RUN apt install -y default-jre
RUN apt install -y default-jdk
# Install the server
RUN wget -O /gremlin.zip http://mirrors.estointernet.in/apache/tinkerpop/3.4.2/apache-tinkerpop-gremlin-server-3.4.2-bin.zip && \
unzip /gremlin.zip -d /gremlin && \
rm /gremlin.zip
WORKDIR /gremlin/apache-tinkerpop-gremlin-server-3.4.2
# 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.2
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"]