Instant Neo4j without having to install Java!
Vagrant and Docker enable rapid provisioning and instant virtualization for your development needs.
Use this repo to launch a Neo4j instance on your local machine for development in just a few commands.
Vagrant (>=1.6)
- For OSX: I was successful with boot2docker. If you have issues with boot2docker or prefer a lightweight approach, try this.
- Clone the repository
git clone git@github.com:amoose/docker-neo4j.git
- Tell Vagrant where to find Docker by setting
export DOCKER_HOST=tcp://localhost:2375
if not already set - Be sure docker is running (if using boot2docker run
boot2docker init
andboot2docker up
) and pull down the trusted build from the docker registry withdocker pull dockerfile/java
. - Build the custom neo4j image with
docker build -t neo4j .
- Fire up Vagrant with
vagrant up --provider=docker
from the project root. - After a few seconds, check the Neo4j dashboard at localhost:7474
Once your image is pulled and built, take it down with vagrant halt
and launch again any time with vagrant up --provider=docker
.
Thanks to Jack Preston for his writeup of the Dockerfile and pointing out the IP-binding issue.
- Fork it
- Create your feature branch (
git checkout -b feature/my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request