-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
21 lines (17 loc) · 723 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Docker file for EHRI backend web service
FROM neo4j:3.5.28
# Set git commit build revision as a label which
# we can inspect to figure out the image version.
# This is set using --build-arg $(git rev-parse HEAD)
# with the docker build command.
ARG GIT_COMMIT=unspecified
LABEL git_commit=$GIT_COMMIT
# Set Neo4j configuration
ENV NEO4J_HOME=/var/lib/neo4j
ENV NEO4J_AUTH=none
ENV NEO4J_dbms_unmanagedExtensionClasses=eu.ehri.project.ws=/ehri
# Copy the output of mvn package to the Neo4j plugin folder...
COPY build/target/ehri-data*.jar plugins
# Initialise the database on container start...
COPY scripts/lib.sh scripts/cmd scripts/initdb.sh $NEO4J_HOME/scripts/
ENV EXTENSION_SCRIPT=$NEO4J_HOME/scripts/initdb.sh