Skip to content

Commit

Permalink
Add docs for pure Docker execution
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Jun 8, 2023
1 parent 8e9b627 commit 360b6aa
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions dockerfiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,24 @@ without Docker Compose, you can try the following command before loading your
vocabulary data. It starts a container in the same way our other example with
the `docker-compose` command.

export JENA_4_VERSION=4.7.0

docker build -t jena-fuseki:$JENA_4_VERSION --build-arg JENA_VERSION=$JENA_4_VERSION \
--no-cache dockerfiles/jena-fuseki2-docker

mkdir -p databases/skosmos
# You need to install an Apache Jena Binary Distribution version
# from https://jena.apache.org/download/index.cgi
tdb2.tdbloader --loc databases/skosmos ./dockerfiles/config/skosmos.ttl

docker run --name fuseki -ti --rm \
--env "ADMIN_PASSWORD=admin" --env "JVM_ARGS=-Xmx2g" \
-p 3030:3030 \
--mount type=bind,src=$(pwd)/config/skosmos.ttl,dst=/fuseki/configuration/skosmos.ttl \
stain/jena-fuseki
--env "JAVA_OPTIONS=-Xmx2g -Xms1g" \
-p 3030:3030 \
-v $(pwd)/databases:/fuseki/databases \
jena-fuseki:$JENA_4_VERSION \
--tdb2 --loc databases/skosmos /skosmos

curl -XPOST http://localhost:3030/skosmos/query -d "query=SELECT ?a WHERE { ?a ?b ?c }"

## Running with docker-compose

Expand Down

0 comments on commit 360b6aa

Please sign in to comment.