Ontopia docker. Public repository at https://hub.docker.com/r/laurocesar/ontopia/
Build the image named ontopia
:
mkdir ontopia-docker
cd ontopia-docker
git clone https://github.com/laurocesar/ontopia-docker.git
docker build --rm -t ontopia .
docker pull laurocesar/ontopia
Created and run the container:
docker run --name ontopia -p 8080:8080 -d ontopia
If you want to link some local directory on the container, you should use this:
docker run --name ontopia -v "$(pwd)":/opt/host -p 8080:8080 -d ontopia
Similarly, you can link a single file to the topicmaps
directory:
docker run --name ontopia -v "$(pwd)/ontology.xtm":/opt/ontopia/topicmaps/ontology.xtm -p 8080:8080 -d ontopia
After a system restart, you can just start the container:
docker start ontopia
Or even stop it:
docker stop ontopia