-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.stardog
37 lines (26 loc) · 1015 Bytes
/
Dockerfile.stardog
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 java:8-jre-alpine
ENV STARDOG_VERSION 4.1.2
ENV STARDOG_HOME /data
ENV STARDOG_INSTALL_DIR /opt/stardog
ENV STARDOG_START_PARAMS ""
ENV STARDOG_DB_NAME guidelines
ENV STARDOG_CREATE_PARAMS "-n ${STARDOG_DB_NAME} -v -o versioning.enabled=true preserve.bnode.ids=false strict.parsing=false --"
ENV STARDOG_JAVA_ARGS "-Xms2g -Xmx2g -XX:MaxDirectMemorySize=2g"
ENV PATH ${STARDOG_INSTALL_DIR}/bin:${PATH}
RUN mkdir -p ${STARDOG_HOME}
RUN mkdir -p ${STARDOG_INSTALL_DIR}
WORKDIR ${STARDOG_INSTALL_DIR}
RUN apk update
RUN apk add unzip bash
ADD stardog-*.zip /tmp
RUN unzip -d /tmp /tmp/stardog-*.zip
RUN rm -f /tmp/stardog-*.zip
RUN cp -r /tmp/stardog-*/* ${STARDOG_INSTALL_DIR}/
RUN rm -rf /tmp/stardog-*
ADD stardog-license-key.bin ${STARDOG_INSTALL_DIR}
ADD stardog.properties ${STARDOG_INSTALL_DIR}
ADD start-stardog-service.sh ${STARDOG_INSTALL_DIR}
RUN chmod +x ${STARDOG_INSTALL_DIR}/start-stardog-service.sh
WORKDIR ${STARDOG_HOME}
CMD ${STARDOG_INSTALL_DIR}/start-stardog-service.sh
EXPOSE 5820