Skip to content

Instantly share code, notes, and snippets.

@jdrain
Last active December 5, 2017 20:41
Show Gist options
  • Save jdrain/897692b109be656fc9eee8a8a6f75738 to your computer and use it in GitHub Desktop.
Save jdrain/897692b109be656fc9eee8a8a6f75738 to your computer and use it in GitHub Desktop.
Data Addition To Docker Containers

First, start the cluster with docker-compose up -d. I commented out the section of docker-compose.yml adding the data acquisition image.

Clone the example repo git clone https://github.com/neo4j-examples/neo4j-movies-template.git

Get the container id with docker ps and copy the csv over with docker cp csv <container_id>:/var/lib/neo4j/csv

Then, get a shell in the docker container with docker exec -it <container_id> /bin/bash

Now, you can execute the commands found on the Project README.

You might need to rm -rf /data/databases/graph.db before this will work. Also, the files should be in the home directory so the exectuable will just be bin/neo4j-import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment