Skip to content

Commit 47be724

Browse files
Pogrebnyak, SergeiPogrebnyak, Sergei
authored andcommitted
10.2 updates
1 parent 12ef335 commit 47be724

File tree

4 files changed

+99
-52
lines changed

4 files changed

+99
-52
lines changed

.travis.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
sudo: required
22

33
env:
4-
- RELEASE=10.1
4+
global:
5+
- TARGET_REGISTRY=sergeipogrebnyak
6+
matrix:
7+
- RELEASE=10.2 SOURCE_REGISTRY=softwareag
8+
# - RELEASE=10.1 SOURCE_REGISTRY=store/softwareag
59

610
services:
711
- docker
812

913
before_install:
1014
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
11-
- docker pull store/softwareag/commandcentral:$RELEASE-server
12-
- docker pull store/softwareag/commandcentral:$RELEASE-node
15+
- docker pull $SOURCE_REGISTRY/commandcentral:$RELEASE-server
16+
- docker pull $SOURCE_REGISTRY/commandcentral:$RELEASE-node
1317
- docker network create ccnetwork
1418

1519
script:
16-
- docker build -t sergeipogrebnyak/commandcentral:$RELEASE-server .
17-
- docker run --name cc -d -p 127.0.0.1:8091:8091 --network ccnetwork sergeipogrebnyak/commandcentral:$RELEASE-server
18-
- docker run --name n1 -d --network ccnetwork -e CC_AUTO_REGISTER=0 store/softwareag/commandcentral:$RELEASE-node
20+
- docker build --build-arg SOURCE_REGISTRY=$SOURCE_REGISTRY -t $TARGET_REGISTRY/commandcentral:$RELEASE-server .
21+
- docker run --name cc -d -p 127.0.0.1:8091:8091 --network ccnetwork $TARGET_REGISTRY/commandcentral:$RELEASE-server
22+
- docker run --name n1 -d --network ccnetwork -e CC_AUTO_REGISTER=0 $SOURCE_REGISTRY/commandcentral:$RELEASE-node
1923
- docker exec cc sagcc list landscape nodes local -e ONLINE -w 180
2024
- docker exec cc sagcc add landscape nodes alias=n1 url=http://n1:8092 -e OK
2125
- docker exec cc sagcc list landscape nodes n1 -e ONLINE -w 180
2226

2327
after_success:
2428
# - if [ "$TRAVIS_BRANCH" == "master" ]; then
2529
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
26-
- docker push sergeipogrebnyak/commandcentral:$RELEASE-server;
30+
- docker push $TARGET_REGISTRY/commandcentral:$RELEASE-server;
2731
# fi

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM store/softwareag/commandcentral:10.1.0.1-server
1+
ARG SOURCE_REGISTRY=store/softwareag
2+
FROM $SOURCE_REGISTRY/commandcentral:10.2-server
23

34
# customize Command Central settings example
45
RUN echo com.softwareag.platform.management.client.template.composite.skip.restart.runtimes=true>>$SAG_HOME/profiles/CCE/configuration/config.ini

README.md

Lines changed: 71 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Login to Docker with your Docker ID from your console and verify you can downloa
99

1010
```bash
1111
docker login
12-
docker pull store/softwareag/commandcentral:10.1.0.1-server
12+
docker pull store/softwareag/commandcentral:10.2-server
1313
```
1414

1515
## Starting a default Command Central server
@@ -23,7 +23,7 @@ docker network create ccnetwork
2323
You can start new Command Central server by running the container:
2424

2525
```bash
26-
docker run --name cc -d -p 8091 --network ccnetwork store/softwareag/commandcentral:10.1.0.1-server
26+
docker run --name cc -d -p 8091 --network ccnetwork store/softwareag/commandcentral:10.2-server
2727
```
2828

2929
Run ```docker port cc``` command to find out its published port
@@ -33,7 +33,50 @@ Run ```docker port cc``` command to find out its published port
3333
```
3434

3535
This will start an empty Command Central with the HTTPS port exposed.
36-
Open published port in the browser, for example https://0.0.0.0:32769/
36+
37+
To check the Command Central container logs run ```docker logs cc```.
38+
The output should look similiar to this:
39+
40+
```bash
41+
Command Central is ONLINE
42+
List of installed products:
43+
Product Display Name Version
44+
Core Installer Files | Software AG Installer 10.2.0.0.201
45+
Infrastructure | Command Central | Command Line Tools 10.2.0.0.163
46+
Infrastructure | Command Central | Server 10.2.0.0.186
47+
Infrastructure | Java Package 1.8.0.0.105
48+
Infrastructure | Libraries | Installer Libraries 10.2.0.0.209
49+
Infrastructure | Libraries | Migration Framework Libraries 10.2.0.0.121
50+
Infrastructure | Libraries | Third-Party Libraries | log4j Libraries 10.2.0.0.27
51+
Infrastructure | Libraries | Third-Party Libraries | Tool for Apache Ant 10.2.0.0.27
52+
Infrastructure | Libraries | Third-Party Libraries | Tool for Java Service Wrapper 10.2.0.0.27
53+
Infrastructure | License | Agreement 10.2.0.0.12
54+
Infrastructure | License | Verifier 5.6.5.0.718
55+
Infrastructure | Platform Manager 10.2.0.0.190
56+
Infrastructure | Platform Manager Plug-ins | Command Central Plug-in 10.2.0.0.186
57+
Infrastructure | Shared Platform | Bundles | Asset Distribution Bundles 10.2.0.0.176
58+
Infrastructure | Shared Platform | Bundles | Common Landscape Asset Registry 10.2.0.0.229
59+
Infrastructure | Shared Platform | Bundles | Deployer and Asset Build Environment Bundles 10.2.0.0.184
60+
Infrastructure | Shared Platform | Bundles | Installer Bundles 10.2.0.0.209
61+
Infrastructure | Shared Platform | Bundles | License Validator Bundles 5.6.5.0.718
62+
Infrastructure | Shared Platform | Bundles | Shared Bundles 10.2.0.0.27
63+
Infrastructure | Shared Platform | Bundles | Terracotta | BigMemory Max Bundles 4.3.5.0.34
64+
Infrastructure | Shared Platform | Bundles | Web Services Stack Bundles 10.2.0.0.334
65+
Infrastructure | Shared Platform | Platform 10.2.0.0.344
66+
Update Manager 10.1.0.0.21
67+
List of installed fixes:
68+
Fix Display Name Fix Version
69+
Command Central 10.2.0 FIX 1 10.2.0.0001-0195
70+
Command Central WebUI 10.2.0 FIX 1 10.2.0.0001-0178
71+
Command Line Tools 10.2.0 FIX 1 10.2.0.0001-0169
72+
Platform Manager 10.2.0 FIX 1 10.2.0.0001-0198
73+
Platform Manager Shared 10.2.0 FIX 1 10.2.0.0001-0068
74+
Command Central Plug-in to Platform Manager 10.2.0 FIX 1 10.2.0.0001-0195
75+
SUM API 10.2.0 FIX 1 10.2.0.0001-0150
76+
2018/04/17 23:00:42 INFO # Command Central version: 10.2.0.0001-0195
77+
```
78+
79+
Open published port in the browser, for example https://0.0.0.0:32769/
3780
to see Command Central login page.
3881

3982
Login with default credentials as Administrator/manage.
@@ -61,66 +104,66 @@ For development or testing purposes you can launch an empty Software AG managed
61104
Run Command Central node container on the 'ccnetwork' network:
62105

63106
```bash
64-
docker run --name n1 -d -P --network ccnetwork store/softwareag/commandcentral:10.1.0.1-node
107+
docker run --name n102 -d -P --network ccnetwork store/softwareag/commandcentral:10.2-node
65108
```
66109

67110
By default node container will auto register itself with Command Central using
68111
container's internal id.
69112

70113
After a minute or so the managed node status will change to green (ONLINE).
71114

115+
NOTE that you can add launch and register older versions of Softwarte AG managed installation
116+
for which a corresponding docker image is available. For example
117+
118+
```bash
119+
docker run --name n101 -d -P --network ccnetwork store/softwareag/commandcentral:10.1-node
120+
```
121+
72122
## Create custom Command Central image
73123

74-
You tune up certain aspects of Command Central by modifying its configuration files and creating a custom image with the changes.
124+
You can tune up certain aspects of Command Central by modifying its configuration files and creating a custom image with the changes.
75125

76-
For example, you can optimize your local template development or CI process by instructing Command Central to skip restart of runtimes at the end of composite template application.
126+
For example, you can optimize Command Central for template development or CI process by instructing Command Central to skip restart
127+
of runtimes at the end of composite template application, register repositories and license files:
77128

78129
```dockerfile
79-
FROM store/softwareag/commandcentral:10.1.0.1-server
130+
FROM store/softwareag/commandcentral:10.2-server
80131
# skip runtimes restart
81132
RUN echo com.softwareag.platform.management.client.template.composite.skip.restart.runtimes=true>>$SAG_HOME/profiles/CCE/configuration/config.ini
82133
```
83134

84135
Build the image and run the container:
85136

86137
```bash
87-
docker build -t my/ccserver:10.1 .
88-
docker run --name cc -d -p 8091 --network ccnetwork my/ccserver:10.1
138+
docker build -t my/ccserver:10.2 .
139+
docker run --name mycc -d -p 8091 --network ccnetwork my/ccserver:10.2
89140
```
90141

91142
Use it in your DEV/CI pipeline:
92143

93144
```bash
94-
docker exec cc sagcc exec composite templates apply mytemplate
145+
docker exec mycc sagcc exec composite templates apply mytemplate
95146
```
96147

97148
## Using docker-compose files for dev and test environments
98149

99150
Run example init service from ```docker-compose.yml``` file:
100151

101152
```bash
153+
154+
export EMPOWER_PASSWORD=****
155+
export CC_PASSWORD=****
156+
102157
docker-compose run --rm init
103158
```
104159

105-
The init service will bring up Command Central container and two
106-
test managed nodes.
107-
108-
When it's done running open [Command Central Web UI](https://0.0.0.0:8091)
109-
110-
Command Central will show two nodes:
111-
112-
* one auto-registered with container id as node alias
113-
* second one registered with as 'test2'
160+
The init service will
114161

115-
After a minute or so they both will come online.
162+
* Create and start Command Central container
163+
* Create, start and register a test managed node
164+
* Register master product and fix repositories with provided Empower credentials
116165

117-
Install, patch, configure and use Software AG software on these
118-
test nodes. Recycle them when no longer needed:
119-
120-
```bash
121-
docker-compose stop test1 test2
122-
docker-compose rm test1 test2
123-
```
166+
When it's done running open [Command Central Web UI](https://0.0.0.0:8091)
124167

125168
## Configuring Command Central
126169

@@ -133,7 +176,7 @@ Please see [Command Central](https://github.com/SoftwareAG/sagdevops-cc-server)
133176
## Building Docker images using Command Central Builder
134177

135178
You can build custom images with Software AG software using
136-
softwareag/commandcentral:10.1.0.1-builder image and Command Central templates.
179+
softwareag/commandcentral:10.2-builder image and Command Central templates.
137180

138181
Please see [Command Central Docker builder](https://github.com/SoftwareAG/sagdevops-cc-docker-builder) project.
139182

docker-compose.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,38 @@ version: "3"
22

33
services:
44
cc:
5-
image: store/softwareag/commandcentral:10.1.0.1-server
5+
image: store/softwareag/commandcentral:10.2-server
66
ports:
77
- "8090:8090"
88
- "8091:8091"
99
environment:
1010
- CC_PASSWORD
1111

1212
test1:
13-
image: store/softwareag/commandcentral:10.1.0.1-node
13+
image: store/softwareag/commandcentral:10.2-node
1414
ports:
1515
- "5555:5555" # IS
1616
- "9000:9000" # UM
17-
- "8585:8585" # MWS
18-
- "8072:8072" # Applatform
1917
environment:
2018
- CC_AUTO_REGISTER=1 # auto-registration
21-
depends_on:
22-
- cc
23-
24-
test2:
25-
image: store/softwareag/commandcentral:10.1.0.1-node
26-
environment:
27-
- CC_AUTO_REGISTER=0 # no auto-registration
19+
- CC_SERVER=cc
20+
- CC_PASSWORD
2821
depends_on:
2922
- cc
3023

3124
init:
32-
image: store/softwareag/commandcentral:10.1.0.1-server
25+
image: store/softwareag/commandcentral:10.2-server
3326
environment:
3427
- CC_SERVER=cc
35-
command: # any client command againt a remote server
36-
sagcc add landscape nodes alias=test2 url=https://test2:8093 -e 200
28+
- CC_PASSWORD
29+
- EMPOWER_USERNAME
30+
- EMPOWER_PASSWORD
31+
command: >
32+
bash -c "
33+
sagcc list landscape nodes --wait-for-cc &&
34+
sagcc add repository products name=webMethods-10.2 location=http://sdc.softwareag.com/dataservewebM102/repository username=$EMPOWER_USERNAME password=$EMPOWER_PASSWORD &&
35+
sagcc add repository fixes name=Empower location=http://sdc.softwareag.com/updatges/prodRepo username=$EMPOWER_USERNAME password=$EMPOWER_PASSWORD
36+
"
3737
depends_on:
38-
- test1
39-
- test2
4038
- cc
39+
- test1

0 commit comments

Comments
 (0)