11# Command Central Docker Builder
22
3- This project demonstrates how to build docker images using
3+ [ ![ Build Status] ( https://travis-ci.org/SoftwareAG/sagdevops-cc-docker-builder.svg?branch=master )] ( https://travis-ci.org/SoftwareAG/sagdevops-cc-docker-builder )
4+
5+ This project demonstrates how to build Docker images using
46Command Central Docker Builder.
57
68## Overview
@@ -21,7 +23,7 @@ docker login
2123docker pull store/softwareag/commandcentral:10.1-server
2224```
2325
24- Copy init-10.1.yaml into init.yaml files and modify it
26+ Copy init-10.1.yaml into init.yaml file and update it
2527with your Empower credentials (email and password):
2628
2729``` yaml
@@ -43,7 +45,7 @@ For CI you can use the following method:
4345export RELEASE=10.1
4446export EMPOWER_USERNAME=you@company.com
4547export EMPOWER_PASSWORD=youpass
46- envsubst < init-$RELEASE.yaml.template > init.yaml
48+ envsubst < init-$RELEASE.yaml > init.yaml
4749```
4850
4951## Building images
@@ -68,7 +70,7 @@ There are 3 flavors of images:
6870* [ Unmanaged] ( Dockerfile.unmanaged ) - customized image without SPM management agent
6971* [ Managed] ( Dockerfile.managed ) - customized image with SPM management agent
7072
71- Build the second and third by running:
73+ Build the unmanaged and managed images by running:
7274
7375``` bash
7476docker-compose build unmanaged managed
@@ -104,29 +106,29 @@ Managed image includes Command Central agent (SPM) and thus:
104106
105107* You can monitor, administer and even configure it in Command Central
106108* And still manage by an orchestration tool of your choice
107- * Adds only a small overhead in terms of image size (~ 40mb) and a second process within the container
109+ * The cost is a small overhead in terms of image size (~ 40mb) and a second process within the container
108110
109111## Running containers
110112
111- Let run containers from the images we just built.
113+ Let's run containers from the images we just built.
112114
113- ### Providing license file
115+ ### License key
114116
115- If you want the containers to run for more than 30 minutes, provide a valid Software AG license file :
117+ If you want the containers to run for more than 30 minutes, provide a valid Software AG license key :
116118
117- * Copy 10.x webMethods Microservices Container or Integration Server license to the current folder and save it as ``` licenseKey.xml ``` file .
118- * Uncomment volume mappings for the license file in docker-compose.yml:
119+ * Copy 10.x webMethods Microservices Container or Integration Server license key file to the current folder and name it ``` licenseKey.xml ``` .
120+ * Uncomment volume mappings for the license key file in the [ docker-compose.yml] ( docker-compose.xml ) :
119121
120122``` yaml
121123 volumes :
122124 - ./licenseKey.xml:/opt/softwareag/IntegrationServer/instances/default/config/licenseKey.xml
123125` ` `
124126
125- If you don't have your license handy, just skip this step.
127+ If you don't have your license key file handy, just skip this step.
126128
127129### Running unmanaged containers
128130
129- Start unmanaged container by simply running this command:
131+ Start unmanaged container by running this command:
130132
131133` ` ` bash
132134docker-compose up -d unmanaged
@@ -137,7 +139,7 @@ Creating sagdevops-cc-docker-builder_unmanaged_1 ... done
137139```
138140
139141Wait until container comes up.
140- You can monitor the log using this command until you this ONLINE statement:
142+ You can monitor the log using this command until you see ONLINE statement like this :
141143
142144``` bash
143145docker-compose logs -f unmanaged
@@ -149,17 +151,17 @@ unmanaged_1 | Integration Server is ONLINE at ...
149151Stop tailing the log by pressing Ctrl+C.
150152
151153Open Integration Server Admin UI at [ http://0.0.0.0:5552/ ] ( http://0.0.0.0:5552/ )
152- Login as Administrator/manage
154+ and login as Administrator/manage.
153155
154156Congratuations!
155157
156- This is your custom-built webMethods Microservices Runtime container for 10 .1 with the latest fixes
157- and basic configuration.
158+ This is your custom-built webMethods Microservices Runtime container v10 .1 with the latest core fixes
159+ and basic configuration applied built from a simple Command Central YAML template!
158160
159161### Running managed containers
160162
161- To take advantage of the management capabilities privided by Command Central
162- we can run managed containers .
163+ We can take advantage of the management capabilities privided by Command Central not just at the image
164+ build time, but at container runtime as well .
163165
164166Start Command Central container first:
165167
@@ -175,21 +177,18 @@ Wait until the command completes.
175177
176178Open [ Command Central] ( https://0.0.0.0:8091/ ) and login as Administrator/manage.
177179
178- > NOTE that Command Central images comes from Docker Store. We did not build or customize it anyhow.
180+ > NOTE that Command Central image comes from Docker Store. We did not build or customize it anyhow.
179181
180182Click on the Installations tab and notice that the list of managed installations includes only 'local' node.
181183
182- to see simple and managed containers in
183- the maganed landscape.
184-
185184Start managed container by running:
186185
187186``` bash
188187docker-compose up -d managed
189188docker-compose logs -f managed
190189
191190...
192- managed_1 | Registering ' msc ' with Command Central server ' cc' ...
191+ managed_1 | Registering ' ... ' with Command Central server ' cc' ...
193192managed_1 | 200 OK
194193
195194managed_1 | 2018-05-04 17:04:55 UTC [ISP.0046.0012I] Enabling HTTP Listener on port 5555
@@ -199,20 +198,31 @@ managed_1 | Integration Server is ONLINE at http://9eef625c9410:5555/
199198
200199Stop tailing the log by pressing Ctrl+C.
201200
202- Check Command Central Web UI Installations and Instances tabs and notice
203- Integration Server runtime instance is automatialy discovered and registred
201+ Open Integration Server Admin UI at [ http://0.0.0.0:5553/ ] ( http://0.0.0.0:5553/ )
202+ and login as Administrator/manage.
203+
204+ Open Command Central Web UI Installations and Instances tabs and notice
205+ this Integration Server runtime instance is automatialy discovered and registred
204206within Command Central managed landscape.
205207
206- Open Integration Server Admin UI at [ http://0.0.0.0:5553/ ] ( http://0.0.0.0:5553/ )
207- Login as Administrator/manage
208+ > You may need to click refresh icon to speed up the auto-update process
209+
210+ You can view its status, monitoring KPIs, logs, configuration, fix levels, etc.
211+ Everything you can do with Integration Server running on a VM.
208212
209- Run simple smoke tests against managed containers using Command Central API:
213+ You can even run simple smoke tests against managed containers using Command Central API
214+ to verify successful setup:
210215
211216``` bash
212217docker-compose run --rm test
213218```
214219
215- See 'test' container command in docker-compose.yml for details.
220+ > See 'test' container command in docker-compose.yml for details.
221+
222+ Congratulations!
223+
224+ You can now build managed and unmanaged Docker images for Software AG products using
225+ Command Central Docker Builder and composite templates.
216226
217227## Cleanup
218228
0 commit comments