/ontopia-docker

Ontopia docker

GNU General Public License v3.0GPL-3.0

ontopia-docker

Ontopia docker. Public repository at https://hub.docker.com/r/laurocesar/ontopia/

Building or Pulling

Building from scratch

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 .

Pulling from Dockerhub

docker pull laurocesar/ontopia

Running

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

Controlling the container

After a system restart, you can just start the container:

docker start ontopia

Or even stop it:

docker stop ontopia