### Start WebProtégé Docker Containers Source: https://github.com/protegeproject/webprotege/blob/master/readme.md Start the WebProtégé and MongoDB Docker containers in detached mode. Ensure Docker and Docker Compose are installed. ```bash docker-compose up -d ``` -------------------------------- ### Start WebProtégé Docker Containers Source: https://github.com/protegeproject/webprotege/wiki/WebProtégé-Deployment-via-Docker Command to initiate the Docker containers defined in the docker-compose.yml file. ```bash $ docker-compose up ``` -------------------------------- ### Run WebProtégé in SuperDev Mode with Maven Source: https://github.com/protegeproject/webprotege/blob/master/readme.md Start WebProtégé in SuperDev Mode using Maven. This involves starting the GWT code server in one terminal and the Tomcat server in another. ```bash mvn gwt:codeserver ``` ```bash mvn -Denv=dev tomcat7:run ``` -------------------------------- ### Clone WebProtégé Repository Source: https://github.com/protegeproject/webprotege/blob/master/readme.md Clone the WebProtégé GitHub repository to your local machine to start building from source. ```bash git clone https://github.com/protegeproject/webprotege.git ``` -------------------------------- ### Docker Compose Configuration for WebProtégé Source: https://github.com/protegeproject/webprotege/wiki/WebProtégé-Deployment-via-Docker Defines the services for WebProtégé and its MongoDB dependency. Ensure Docker Desktop is installed. ```yml version: '3' services: wpmongo: image: mongo:4.1-bionic webprotege: image: protegeproject/webprotege restart: always environment: - webprotege.mongodb.host=wpmongo ports: - 5000:8080 depends_on: - wpmongo ``` -------------------------------- ### Create WebProtégé Administrator Account Source: https://github.com/protegeproject/webprotege/wiki/WebProtégé-Deployment-via-Docker Command to execute within the WebProtégé container to set up an administrator account. You will be prompted for username, email, and password. ```bash java -jar /webprotege-cli.jar create-admin-account Please enter a user name for the administrator: Please enter an email address for the administrator: Please enter a password for the administrator account: Please confirm the password: ``` -------------------------------- ### Package WebProtégé using Maven Source: https://github.com/protegeproject/webprotege/blob/master/readme.md Use Maven to clean and package the WebProtégé project. The resulting .war file will be in the webprotege-server directory. ```bash mvn clean package ``` -------------------------------- ### List Running Docker Containers Source: https://github.com/protegeproject/webprotege/wiki/WebProtégé-Deployment-via-Docker Command to display the status and ports of running Docker containers. Useful for identifying the WebProtégé container name. ```bash $ docker-compose ps Name Command State Ports -------------------------------------------------------------------------------------- webprotege_webprotege_1 catalina.sh run Up 0.0.0.0:5000->8080/tcp webprotege_wpmongo_1 docker-entrypoint.sh mongod Up 27017/tcp ``` -------------------------------- ### Access WebProtégé Container Shell Source: https://github.com/protegeproject/webprotege/wiki/WebProtégé-Deployment-via-Docker Command to enter an interactive bash shell within the running WebProtégé Docker container. Replace 'webprotege_webprotege_1' with your container's actual name. ```bash $ docker exec -it webprotege_webprotege_1 bash ``` -------------------------------- ### Stop WebProtégé Docker Containers Source: https://github.com/protegeproject/webprotege/blob/master/readme.md Stop and remove the running WebProtégé and MongoDB Docker containers. This command also removes associated networks. ```bash docker-compose down ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.