Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

docker container run command (respective the alias docker run) can be used to start tia Content Server Core from OS shell.

While quickly to use for test system, the command line can become very long and difficult to handle. For production systems docker compose files are better to maintain. See https://kgs-software.atlassian.net/wiki/spaces/DOCUEN/pages/3424092162/Example+-+Using+docker+compose+file?atl_f=content-tree .

Template of docker run command for copy & paste:

Code Block
docker run --name <Name> -p <Hostport>:<Containerport> -v data_volume:/temp/data  -v <License Folder>:/application/config/license/ -v <Config Folder>/repository.cfg:/application/config/repository.cfg -e LOGGING_LEVEL_ROOT=<Loglevel> -e WEBAPP_SECURITY_AUTH_BASIC_PASSWORD="<BcryptHash>" -d <Image>

Example:

Code Block
docker run --name tiacore-AL -p 8080:8080 -v data_volume:/temp/data  -v ./tiacore/license:/application/config/license/ -v ./tiacore/repository.cfg:/application/config/repository.cfg -e LOGGING_LEVEL_ROOT=INFO -e WEBAPP_SECURITY_AUTH_BASIC_USERNAME=admin -e WEBAPP_SECURITY_AUTH_BASIC_PASSWORD="\$2a\$10\$5E1KpGIKSq6xuWmGf92bheB17V0l4fEMnVmYPqhWiazKddcx1TF/e" -d images.docker.kgs-cloud.de/tia/core/saphttp:latest
Info

The environment variable WEBAPP_SECURITY_AUTH_TYPE is set to basic by default. Therefore it is not required to be set in this example explicitly.

Explanation of docker run command:

The parameter -p maps ports, and -v volumes (directories or files) between host and container. -e sets environmental variables in the container.

Using -v allows to store data like configuration permanently at host, edit, maintain it there, even when the container is started, destroyed and restarted again.