This example uses the configuration files in the conf directory, and requires starting from the parent SciGraph directory
To test a different ontology edit the ontologies field in the load-configuration.yaml
From this directory:
cd ..
docker build -t scigraph -f docker/Dockerfile .
Building the graph in /tmp/graph, note that this will error if another graph exists in this directory,
docker run \
-v /tmp/graph:/data \
-v `pwd`/docker/conf:/scigraph/conf \
scigraph load-scigraph load-configuration.yaml
docker run \
-v /tmp/graph:/data \
-v `pwd`/docker/conf:/scigraph/conf \
-d -p 9000:9000 \
--name scigraph-services \
scigraph start-scigraph-service service-configuration.yaml
Wait 60 seconds for the server to start, then:
Browse the generated REST documentation to see some of the other resources.
Check out some of the REST endpoints:
In the /etc/rc.local
Xvfb :1 -screen 0 800x600x16 &
and in the /etc/environment
export DISPLAY=:1
docker stop scigraph-services