Skip to content

Latest commit

 

History

History
 
 

hello-world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Building Hello World container image

Use this template to build a simple hello-world container image.

Requirements and limitations

Supported Software AG releases

  • Platform Manager 10.1 or higher
  • Command Central 10.3 or higher

Supported platforms

  • Docker 18.06-ce or higher

Supported use cases

  • Building a Docker image with configured Platform Manager

Building Docker image

Building using docker-compose

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.

Parameterizing 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%