Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Loading and Deploying SciGraph in Docker

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 ..

Build SciGraph Image

docker build -t scigraph -f docker/Dockerfile .

Run SciGraph Loader

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

Run SciGraph Service

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:

Enabling the image writers (Ubuntu)

In the /etc/rc.local

Xvfb :1 -screen 0 800x600x16 &

and in the /etc/environment

export DISPLAY=:1
Test endpoints that output images

Stop SciGraph

docker stop scigraph-services