The KGS tia® Webservice is based on the OSGi-Framework. Since version 2.2.2 the KGS tia® Webservice is also available as a container in addition to the WAR-Deployment.
...
...
It is expected to have all mandatory requirements fullfilled. See: https://kgs-software.atlassian.net/wiki/spaces/~5c8bb2ef33a4404c1086f9b4/pages/2683469825/OSGi+Produkte+in+Container#Dependencies%3A
Table of Contents |
---|
Snippet Summary
Code Block |
---|
docker login https://images.docker.kgs-cloud.de/harbor/ docker pull images.docker.kgs-cloud.de/tia-webservice/tia-webservice:<version> docker run --name webservice -p 8080:8080 -v {YOUR HOST DIRECTORY MOUNT PATH}:/application/work -d images.docker.kgs-cloud.de/tia-webservice/tia-webservice:<version> |
Step 1: Pull the Image
Code Block |
---|
docker pull images.docker.kgs-cloud.de/tia-webservice/tia-webservice:<version> |
...
Step 2: Start with mount options
It is necessary to mount a filesystem path into the container in order to persist the product (KGS Webservice) configuration. This procedure ensures that the configuration is not lost after a restart/redeploy of the container.
Code Block |
---|
docker run --name webservice -p 8080:8080 -v {YOUR HOST DIRECTORY MOUNT PATH}:/application/work -d images.docker.kgs-cloud.de/tia-webservice/tia-webservice:<version> |
Explanation:
Command | Task | ||||
---|---|---|---|---|---|
docker run | Start the container | ||||
--name {APPLICATION NAME} | gives the container a free choosable name while running (for easier access later).
Example:
| ||||
-p {PORT}:{PORT} | Maps the host port to the port in the container. Our Software runs on 8080 inside the container, therefore you always want to map your arbitrarily host port to 8080 Sample:
| ||||
-v {HOST_MOUNTDIR}:{CONTAINER_MOUNTDIR} | In order to put the configuration outside of the container, its necessary to mount the /application/work directory of the container into a arbitrarily host directory Example:
| ||||
-d {IMAGE NAME} | The Image to run
Example:
|
|