-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 946 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
FROM ontotext/graphdb:10.6.3
# Override parent entrypoint
ENTRYPOINT []
ENV GRAPHDB_HOME=/opt/graphdb/home
ENV GRAPHDB_INSTALL_DIR=/opt/graphdb/dist
WORKDIR ${GRAPHDB_HOME}
# Install libs related to RDF processing
### for arm64
RUN if command -v apt >/dev/null; then \
apt update && \
apt install -y python3-rdflib && \
apt install -y liburi-perl; \
fi
### for amd64
RUN if command -v apk >/dev/null; then \
apk add py3-rdflib && \
apk add perl-uri; \
fi
# Copy scripts
COPY bin/* ${GRAPHDB_INSTALL_DIR}/bin/
EXPOSE 7200
# Assuming following input directories:
# - /repo-config and data -- configuration ttl files to create repositories
# - /root/graphdb-import -- files to import data to specific repositories
CMD ${GRAPHDB_INSTALL_DIR}/bin/repo-init.sh /repo-config ${GRAPHDB_HOME} & ${GRAPHDB_INSTALL_DIR}/bin/graphdb -Dgraphdb.home=${GRAPHDB_HOME} -Dgraphdb.logback=${GRAPHDB_INSTALL_DIR}/conf/logback.xml