forked from manasRK/graphdb-free
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (26 loc) · 1003 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
33
34
35
36
37
FROM azul/zulu-openjdk
LABEL maintainer "Manas Ranjan Kar <manasrkar91@gmail.com>"
# Build time arguments
ARG version=9.1.1
ARG edition=free
# Environment variables, to be used for the docker image
ENV GDB_HEAP_SIZE=48g
ENV GDB_MIN_MEM=1g
ENV GDB_MAX_MEM=48g
ENV GRAPHDB_PARENT_DIR=/opt/graphdb
ENV GRAPHDB_HOME=${GRAPHDB_PARENT_DIR}/home
ENV GRAPHDB_INSTALL_DIR=${GRAPHDB_PARENT_DIR}/dist
# Copy the installation file recieved after registration
ADD graphdb-${edition}-${version}-dist.zip /tmp
RUN apt-get update && \
apt-get install unzip && \
mkdir -p ${GRAPHDB_PARENT_DIR} && \
cd ${GRAPHDB_PARENT_DIR} && \
unzip /tmp/graphdb-${edition}-${version}-dist.zip && \
mv graphdb-${edition}-${version} dist && \
mkdir -p ${GRAPHDB_HOME} && \
rm /tmp/graphdb-${edition}-${version}-dist.zip
ENV PATH=${GRAPHDB_INSTALL_DIR}/bin:$PATH
CMD ["-Dgraphdb.home=/opt/graphdb/home"]
ENTRYPOINT ["/opt/graphdb/dist/bin/graphdb"]
EXPOSE 7200