-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.rhel
35 lines (25 loc) · 1.18 KB
/
Dockerfile.rhel
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
# base image source https://github.com/rhdt/EL-Dockerfiles/blob/master/base/jboss-jdk-8/Dockerfile
FROM quay.io/openshiftio/rhel-base-jboss-jdk-8:latest
EXPOSE 8182
# install supported utilities
RUN yum -y install unzip wget &&\
yum -y install java java-devel tree nmap-ncat.x86_64&&\
yum clean all
# set java home path require to run janusgrpah
ENV JAVA_HOME /usr/lib/jvm/java-openjdk
# set work directory
WORKDIR /home
# This step doing multiple operation as mentioned below.
# 1. Download janusgraph v0.4.0 relese code
# 2. unzip relase code
# 3. delete zip file
RUN wget "https://github.com/JanusGraph/janusgraph/releases/download/v0.4.0/janusgraph-0.4.0-hadoop2.zip" -P /home &&\
unzip /home/janusgraph-0.4.0-hadoop2.zip && rm /home/janusgraph-0.4.0-hadoop2.zip
# add entrypoint.sh file into home directory
ADD scripts/entrypoint.sh entrypoint.sh
# add janusgraph-cassandra.properties file into gremlin-server folder
ADD configuration/janusgraph-cassandra.properties /home/janusgraph-0.4.0-hadoop2/conf/gremlin-server/
# add execute permission on entrypoint.sh
RUN chmod +x entrypoint.sh
# execute logic mentioned in entrypoint.sh file
ENTRYPOINT [ "bash","entrypoint.sh"]