Skip to content

jayrgauthier/sagdevops-cc-docker-builder

 
 

Repository files navigation

Command Central Docker Builder

This project demonstrates how to build docker images using Command Central Docker Builder.

Overview

Command Central Docker Builder is an tool provided by Software AG on Docker Store. It leverages Command Central templates to run provisioning operations during Docker image build, driven from a standard Dockerfile.

Configuration

Login to Docker Store with your Docker ID, open https://store.docker.com/images/softwareag-commandcentral and accept license agreement to get access to Command Central images.

Login to Docker with your Docker ID from your console and verify you can download the images:

docker login
docker pull store/softwareag/commandcentral:10.1.0.1-server

Modify init.yaml to configure product and fix repositories, poiting to Master 10.1 repostories on Empower using your Empower credentials or point to your local 10.1 mirrors

  product:
    products:
      location: http://sdc.softwareag.com/dataservewebM101/repository/
      username: you@company.com
      password: yourpass
  fix:
    Empower:
      username: you@company.com
      password: yourpass

Add your 10.1 webMethods Microservices Container license file to the current folder as licenseKey.xml file.

Building images

To build images using Command Central composite template run

docker-compose build

See template.yaml for basic webMethods Microservices Container (MSC) runtime instance definition.

There are 3 flavors of images:

  • Simple - easy way to build images
  • Unmanaged - customized image without SPM management agent
  • Managed - customized image with SPM management agent

Check image sizes:

docker images

Running containers

Start Command Central container first

docker-compose run --rm init

Start all 3 types of containers we just built:

docker-compose up -d

Wait up to 2 minutes and access them as:

Login as Administrator/manage

Simple image

There is no size optimization for this image but it is the easiest to build. Suitable for ad-hoc testing.

Simple image comes with SPM and thus can be managed in Command Central.

Unmanaged image

Unmanaged image does not include management agent (SPM) and thus cannot be managed by Command Central, but can be managed by an orchestration tool of your choice.

Managed image

Managed image includes Command Central agent (SPM) and thus:

  • You can monitor, administer and even configure it in Command Central
  • And still managed by an orchestration tool of your choice

Open Command Central to see simple and managed containers in the maganed landscape.

You can run tests against them using Command Central API:

docker-compose run --rm test

Tail the logs if you need to

docker-compose logs -f

Cleanup

docker-compose down

Contact us at TECHcommunity if you have any questions.


DISCLAIMER These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.

About

Command Central docker builder demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%