Skip to content

jblaya/webprotege-dockerfile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebProtégé

Codacy Badge

This image allows you to deploy WebProtégé as a microservice.

WebProtégé is a free, open-source ontology editor and framework for building intelligent systems.

How to

To start a new instance :

docker run --name webprotege -d -v webprotege_data:/data/webprotege --link mongodb -p 8888:8080 docker.io/skyplabs/webprotege

The web application will be accessible from the host system on port 8888. All the persistent data will be stored in a volume managed by Docker and called webprotege_data. mongodb must be the name of a MongoDB docker container listening on port 27017.

To start a MongoDB instance using Docker (must be started before WebProtégé) :

docker run --name mongodb -d -v mongodb_data:/data/db mongo:3

All the persistent data will be stored in a volume managed by Docker and called mongodb_data.

To start the two containers using only one command, you can use Docker Compose :

docker-compose up -d

Customise the configuration

You can customise the configuration of WebProtégé by injecting the webprotege.properties and/or mail.properties files into the container using the volume command. The files must be placed in /usr/local/tomcat/webapps/ROOT/WEB-INF/classes.

For example :

export WP_CONFIG_DIR=/usr/local/tomcat/webapps/ROOT/WEB-INF/classes
docker run --name webprotege -d -v webprotege_data:/data/webprotege -v $(pwd)/config/webprotege.properties:${WP_CONFIG_DIR}/webprotege.properties:ro --link mongodb -p 8888:8080 docker.io/skyplabs/webprotege

The following values must be set in webprotege.properties :

  • application.host
  • data.directory
  • application.version

License

MIT

About

Docker image for WebProtégé

Resources

License

Stars

Watchers

Forks

Packages

No packages published