This runs Stardog 5 CE in Docker.
This image can be built either with or without a stardog license key 'baked in'. The image on Docker Hub (obviously) does not have a license key included, and one must be included in a stardog data volume that is attached to a running container at
- (optiona) To build with a license key baked in, add
stardog-license-key.binto a new
resourcesdirectory in the root of this repo.
docker build --tag stardog:latest .
Note: If you get java segfault errors on run, try giving Docker more RAM (more here).
docker run \ -d -p 5820:5820 \ --name stardog_db \ -v [your local stardog data directory]:/stardog \ stardog:latest
/stardog volume is where Stardog persists its database, and where the license key must reside. If you're using an image with the license key baked in, you don't need to attach this volume - but you'll lose data with the image if you delete it!