graph-store

Provides a simple document style persistence API with event sourcing & GraphQL support

View project on GitHub

Docker Support

Running under Docker

docker run -d -p 7002:7002 ianmorgan/graph-store

This starts the service with the in-memory event-store and the demo StarWars schema and data

Can test running instance on AWS.

For production style deploys see the example Docker Compose scripts (still very much work in progress)

Building and Publishing

building doc-store-deps.jar

For efficiency, the docker build is in 2 steps. If the dependencies have changed, or this is the first time a docker build has been run, build the uber jar with all dependencies with

./gradlew clean compileKotlin depsJar stashDepsJar

Minimising rebuilds on this jar greatly reduces the number of new layers in the docker image, which speeds up all the docker build & publish & pull steps

build doc-store-app.jar

./gradlew clean appJar 

build image and publish

docker build -t graph-store .
docker tag graph-store:latest ianmorgan/graph-store:latest
docker push ianmorgan/graph-store:latest