Skip to content

Commit 5ea1b30

Browse files
Pogrebnyak, SergeiPogrebnyak, Sergei
authored andcommitted
Official images
1 parent d98cecc commit 5ea1b30

File tree

6 files changed

+160
-73
lines changed

6 files changed

+160
-73
lines changed

Dockerfile.managed

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# MUST start with builder image to run provisioning using template.yaml
22

3-
#FROM store/softwareag/commandcentral-builder:10.1 as builder
4-
#FROM daerepository03.eur.ad.sag:4443/ccdevops/builder as builder
3+
#FROM softwareag/commandcentral:10.1.0.1-builder as builder
54
FROM sagdevopsccdockerbuilder_simple as builder
65

76
# ADOPTED from docker file created by running /opt/softwareag/IntegrationServer/docker/is_container.sh createDockerfile

Dockerfile.simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MUST start with builder image to provision using template.yaml
2-
FROM daerepository03.eur.ad.sag:4443/ccdevops/builder as builder
2+
FROM softwareag/commandcentral:10.1.0.1-builder as builder
33

44
# this is default/lazy option for building images
55

Dockerfile.unmanaged

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# MUST start with builder image to run provisioning using template.yaml
2-
# FROM daerepository03.eur.ad.sag:4443/ccdevops/builder as builder
3-
2+
# FROM softwareag/commandcentral:10.1.0.1-builder as builder
43
FROM sagdevopsccdockerbuilder_simple as builder
54

65
# ADOPTED from docker file created by running /opt/softwareag/IntegrationServer/docker/is_container.sh createDockerfile

README.md

Lines changed: 61 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,110 @@
11
# Command Central Docker Builder
22

3-
THIS IS NOT PUBLISHED YET !!!
4-
53
This project demonstrates how to build docker images using
6-
Command Central 10.1 Docker Builder.
4+
Command Central Docker Builder.
75

86
## Overview
97

10-
Command Central Docker Builder is an offical tool provided by Software AG
11-
on Docker Store (link to store). It leverages Command Central templates to run
12-
provisioning operations during Docker image build driven from a standard
13-
Dockerfile.
8+
Command Central Docker Builder is an tool provided by Software AG
9+
on [Docker Store](https://store.docker.com/). It leverages Command Central templates to run
10+
provisioning operations during Docker image build, driven from a standard Dockerfile.
11+
12+
## Configuration
1413

15-
## Quick Start
14+
Modify [init.yaml](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
1615

17-
Requirements:
16+
```yaml
17+
product:
18+
products:
19+
location: http://sdc.softwareag.com/dataservewebM101/repository/
20+
username: you@company.com
21+
password: yourpass
22+
fix:
23+
Empower:
24+
username: you@company.com
25+
password: yourpass
26+
```
1827
19-
* Docker Engine 17.09.0-ce
20-
* Software AG Empower credentials for software download center
28+
## Building images
2129
22-
Get project source and provide your Empower credentials
23-
using environment variables:
30+
To build images using Command Central composite template run
2431
2532
```bash
26-
git clone ...
27-
export EMPOWER_USR=yourempoweruser@youcompany.com
28-
export EMPOWER_PWD=yourempowerpassword
33+
docker-compose build
2934
```
3035

31-
Below are examples of how to build different flavours of webMethods Microservices Container images.
36+
See [template.yaml](template.yaml) for basic webMethods Microservices Container (MSC) runtime instance definition.
3237

33-
## Building and testing simple base image
38+
There are 3 flavors of images:
3439

35-
See [template.yaml] for basic webMethods Microservices Container (MSC) runtime instance definition.
40+
* [Simple](Dockerfile.simple) - easy way to build images
41+
* [Unmanaged](Dockerfile.unmanaged) - customized image without SPM management agent
42+
* [Managed](Dockerfile.managed) - customized image with SPM management agent
43+
44+
Check image sizes:
3645

3746
```bash
38-
export COMPOSE_PROJECT_NAME=sagdevopsccdockerbuilder
39-
export COMPOSE_FILE=simple.yml
40-
docker-compose build
41-
docker images sagdevopsccdockerbuilder_simple
42-
docker-compose up -d
47+
docker images
4348
```
4449

45-
Wait 30 seconds and open [http://localhost:5551/] and login as Administrator/manage
46-
47-
## Building and testing unmanaged image
50+
## Running containers
4851

49-
IMPORTANT: build the simple image first.
50-
51-
Unmanaged image does not include Command Central agent (SPM) and thus cannot be managed
52-
by Command Central, but can be managed by an orchestration tool of your choice.
52+
Run all 3 types of containers:
5353

5454
```bash
55-
export COMPOSE_FILE=unmanaged.yml
56-
docker-compose build
57-
docker images sagdevopsccdockerbuilder_unmanaged
58-
docker-compose up -d
55+
docker-compose up -d simple unmanaged managed
5956
```
6057

61-
Wait 30 seconds and open [http://localhost:5552/] and login as Administrator/manage
58+
Wait up to 1 minute and access them as:
59+
60+
* Simple - [http://0.0.0.0:5551/](http://0.0.0.0:5551/)
61+
* Unmanaged - [http://0.0.0.0:5552/](http://0.0.0.0:5552/)
62+
* Managed - [http://0.0.0.0:5553/](http://0.0.0.0:5553/)
63+
64+
Login as Administrator/manage
65+
66+
## Simple image
6267

63-
## Buiding and testing managed image
68+
There is no size optimization for this image but it is the easiest to build.
69+
Suitable for ad-hoc testing.
6470

65-
IMPORTANT: build the simple image first.
71+
Simple image comes with SPM and thus can be managed in Command Central.
72+
73+
## Unmanaged image
74+
75+
Unmanaged image does not include management agent (SPM) and thus cannot be managed
76+
by Command Central, but can be managed by an orchestration tool of your choice.
77+
78+
## Managed image
6679

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

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

72-
Bring up Command Central first
73-
74-
```bash
75-
export COMPOSE_FILE=managed.yml
76-
docker-compose run --rm init
77-
```
78-
79-
When the above command completes successfully
80-
open [https://localhost:8091/] and login as Administrator/manage to Command Central.
85+
Open [Command Central](https://0.0.0.0:8091/) to see simple and managed containers in
86+
the maganed landscape.
8187

82-
Build and run managed container
88+
You can run tests against them using Command Central API:
8389

8490
```bash
85-
docker-compose build
86-
docker images sagdevopsccdockerbuilder_managed
8791
docker-compose run --rm test
8892
```
8993

90-
When the above command completes successfully
91-
open [http://localhost:5553/] and login as Administrator/manage
92-
93-
Also check out the containter and managed runtime in Command Central.
94-
9594
Tail the logs if you need to
9695

9796
```bash
9897
docker-compose logs -f
9998
```
10099

101-
Cleanup
100+
## Cleanup
102101

103102
```bash
104103
docker-compose down
105104
```
105+
106+
_______________
107+
Contact us at [TECHcommunity](mailto:technologycommunity@softwareag.com?subject=Github/SoftwareAG) if you have any questions.
108+
_______________
109+
DISCLAIMER
110+
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.

docker-compose.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
version: "3.0"
2+
3+
services:
4+
simple:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile.simple
8+
ports:
9+
- "5551:5555"
10+
volumes:
11+
- ./licenseKey.xml:/opt/softwareag/IntegrationServer/instances/default/config/licenseKey.xml
12+
links:
13+
- cc
14+
15+
unmanaged:
16+
build:
17+
context: .
18+
dockerfile: Dockerfile.unmanaged
19+
ports:
20+
- "5552:5555"
21+
volumes:
22+
- ./licenseKey.xml:/opt/softwareag/IntegrationServer/instances/default/config/licenseKey.xml
23+
depends_on:
24+
- simple
25+
26+
managed:
27+
build:
28+
context: .
29+
dockerfile: Dockerfile.managed
30+
ports:
31+
- "5553:5555" # http://localhost:5553
32+
environment:
33+
- CC_SERVER=cc
34+
- CC_AUTO_REGISTER=1
35+
volumes:
36+
- ./licenseKey.xml:/opt/softwareag/IntegrationServer/instances/default/config/licenseKey.xml
37+
links:
38+
- cc
39+
depends_on:
40+
- simple
41+
42+
cc:
43+
image: softwareag/commandcentral:10.1.0.1-server
44+
ports:
45+
- "8090:8090"
46+
- "8091:8091"
47+
48+
init:
49+
image: softwareag/commandcentral:10.1.0.1-server # -client-alpine
50+
environment:
51+
- CC_SERVER=cc
52+
command: sagcc list landscape nodes local -e ONLINE -w 240
53+
links:
54+
- cc
55+
56+
test:
57+
image: softwareag/commandcentral:10.1.0.1-server # -client-alpine
58+
environment:
59+
- CC_SERVER=cc
60+
command: sagcc list monitoring state -e integrationServer-default -w 240
61+
links:
62+
- managed
63+
- cc

init.yaml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,42 @@
11
alias: init
22

33
repositories:
4+
5+
# public repositories
6+
7+
product:
8+
products:
9+
location: http://sdc.softwareag.com/dataservewebM100/repository/
10+
username: you@company.com
11+
password: yourpass
12+
fix:
13+
Empower:
14+
username: you@company.com
15+
password: yourpass
16+
17+
# local mirror repositories
18+
419
# product:
520
# products:
621
# location: http://docker.for.mac.localhost:8092/products-10.1/repository/
722
# username: Administrator
823
# password: manage
24+
# fix:
25+
# products:
26+
# location: http://docker.for.mac.localhost:8092/fix-fixes-10.1/repository/
27+
# username: Administrator
28+
# password: manage
29+
30+
# private SAG repositories
931

10-
product:
11-
products:
12-
host: aquarius-dae.eur.ad.sag
13-
name: 101oct2017_SIC
14-
username: latest
15-
password: latest
16-
fix:
17-
fixes:
18-
host: aquarius-dae.eur.ad.sag
19-
name: intRepo
20-
username: sum
21-
password: sum
32+
# product:
33+
# products:
34+
# host: aquarius-dae.eur.ad.sag
35+
# name: 101oct2017_SIC
36+
# username: latest
37+
# password: latest
38+
# fixes:
39+
# host: aquarius-dae.eur.ad.sag
40+
# name: GA_Fix_Repo
41+
# username: sum
42+
# password: sum

0 commit comments

Comments
 (0)