This overrides public neo4j container on dockerhub to make it more convenient to override the operating database at runtime.
To that effect it:
- uses supervisord configured with supervisorctl support to maintain the neo4j process
- it defines a script:
neo4j-load
which can import dumps from network endpoints
docker exec -it container neo4j-load https://some-neo4j.dump
docker exec -it container supervisorctl status
docker exec -it container supervisorctl restart neo4j
neo4j-load
:
- fetch the dump from the url
- check it with
neo4j-admin load --info
- get user confirmation (y/n)
- stop neo4j
- load dump
- start neo4j