Use this template to build a simple hello-world container image.
- Platform Manager 10.1 or higher
- Command Central 10.3 or higher
- Docker 18.06-ce or higher
- Building a Docker image with configured Platform Manager
Build the container image:
cd sagdevops-template/containers
docker-compose build hello-world
Run the container:
docker-compose up -d hello-world
docker-compose port hello-world 8092
Open Platform Manager in the browser using the address printed above:
open http://localhost:PORT/spm
Login as Administrator/manage
Examine the configuration.
You can provide the configuration values by:
- Hardcoding them in the template.
- Defining them as parameters in an env.properties file.
- Defining them as build arguments in Dockerfile and docker-compose.yml file. See
__hello_world
. - Defining them in the template as ENV variables resolved at container startup. See
%HELLO_NAME%