Installation / Deployment (tWC)
The deliverable is a container image.
This image can be orchestrated with any orchestering solution which can handle OCI container images (see Prerequisites for tia® and kgs Software Components). The following descriptions are examples.
Docker
docker run --name tia-webservice-core -p <port>:8080 -v <host-mount-path>:/application/work -e SPRING_CONFIG_LOCATION=file:/application/work/application.yml -d images.kgs-cloud.de/tia-webservice-core/tia-webservice-core:<VERSION>Please add the Configuration to your <host-mount-path>. An Sample Configuration can be found here: Configuration (tWC)
Docker Compose
services:
tiawebservice:
container_name: tiawebservice
image: images.kgs-cloud.de/tia-webservice-core/tia-webservice-core:<1.0.0>
ports:
- "<port>:8080"
volumes:
- ./config:/application/config
environment:
spring.config.location: /application/config/application.ymlLicense
tia® Webservice Core searches for the license file, e.g. webservicelicense.json, in directory /application/config/license/.
It is possible to specify this path by parameter tia.license.path.
A mapping of the directory containing the license or the license file from permanent file system in host context to this path in container context must exist.
Example snippet for docker compose file:
services:
tiawebservice:
volumes:
- ./webservicelicense.json:/application/config/license/webservicelicense.json