-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (39 loc) · 1.49 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu
RUN echo "root:smsn" | chpasswd
# where to mount data
RUN mkdir /mnt/smsn-data
# choose a character set
RUN apt-get clean && apt-get update
RUN apt-get install locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# misc prerequisites
RUN apt update
RUN apt install -y git wget unzip maven vim
RUN apt install -y default-jre default-jdk # java
RUN apt install -y tcpdump net-tools locales python # maybe not needed
# python's web library
WORKDIR /root
RUN wget http://webpy.org/static/web.py-0.38.tar.gz
RUN tar -xvzf web.py-0.38.tar.gz && rm web.py-0.38.tar.gz
WORKDIR /root/web.py-0.38
RUN python setup.py install
# gremlin: install, and build the neo4j plugin for it
WORKDIR /root
COPY apache-tinkerpop-gremlin-server-3.2.4 /root/apache-tinkerpop-gremlin-server-3.2.4
WORKDIR /root/apache-tinkerpop-gremlin-server-3.2.4
RUN ln -s /root/apache-tinkerpop-gremlin-server-3.2.4 /root/gremlin
COPY grapeConfig.xml /root/.groovy/grapeConfig.xml
RUN /root/gremlin/bin/gremlin-server.sh -i org.apache.tinkerpop neo4j-gremlin 3.2.4
# configure Gremlin for Semantic Synchrony
RUN mkdir -p /root/gremlin/ext/smsn/plugin
COPY start.sh /root/gremlin
COPY rotate-log.sh /root/gremlin
COPY smsn-server-*-standalone.jar /root/gremlin/ext/smsn/plugin/
COPY gremlin-server-smsn.yaml neo4j.properties smsn.yaml /root/gremlin/conf/
EXPOSE 8182
RUN chmod 700 /root/gremlin/start.sh
# CMD ["/bin/bash"] # for easier user-modifiability
CMD ["/root/gremlin/start.sh"]