Skip to content

Commit 02dbcea

Browse files
Merge pull request #4 from SoftwareAG/develop
10.2 GA
2 parents 3f0ba36 + d805269 commit 02dbcea

File tree

4 files changed

+68
-53
lines changed

4 files changed

+68
-53
lines changed

.travis.yml

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

33
env:
4-
- RELEASE=10.1
4+
global:
5+
- TARGET_REGISTRY=sergeipogrebnyak
6+
matrix:
7+
- RELEASE=10.2 SOURCE_REGISTRY=store/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-compose run --rm init
21+
# - docker-compose down
22+
- docker build --build-arg SOURCE_REGISTRY=$SOURCE_REGISTRY --build-arg RELEASE=$RELEASE -t $TARGET_REGISTRY/commandcentral:$RELEASE-server .
23+
- docker run --name cc -d -p 127.0.0.1:8091:8091 --network ccnetwork $TARGET_REGISTRY/commandcentral:$RELEASE-server
24+
- docker run --name n1 -d --network ccnetwork -e CC_AUTO_REGISTER=0 $SOURCE_REGISTRY/commandcentral:$RELEASE-node
1925
- docker exec cc sagcc list landscape nodes local -e ONLINE -w 180
2026
- docker exec cc sagcc add landscape nodes alias=n1 url=http://n1:8092 -e OK
2127
- docker exec cc sagcc list landscape nodes n1 -e ONLINE -w 180
28+
- docker stop n1 cc && docker rm n1 cc
2229

2330
after_success:
2431
# - if [ "$TRAVIS_BRANCH" == "master" ]; then
2532
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
26-
- docker push sergeipogrebnyak/commandcentral:$RELEASE-server;
33+
- docker push $TARGET_REGISTRY/commandcentral:$RELEASE-server;
2734
# fi

Dockerfile

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

4+
FROM $SOURCE_REGISTRY/commandcentral:$RELEASE-server
35
# customize Command Central settings example
46
RUN echo com.softwareag.platform.management.client.template.composite.skip.restart.runtimes=true>>$SAG_HOME/profiles/CCE/configuration/config.ini

README.md

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +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-server
13-
```
12+
docker pull store/softwareag/commandcentral:10.2-server
1413

1514
## Starting a default Command Central server
1615

@@ -23,7 +22,7 @@ docker network create ccnetwork
2322
You can start new Command Central server by running the container:
2423

2524
```bash
26-
docker run --name cc -d -p 8091 --network ccnetwork store/softwareag/commandcentral:10.1-server
25+
docker run --name cc -d -p 8091 --network ccnetwork store/softwareag/commandcentral:10.2-server
2726
```
2827

2928
Run ```docker port cc``` command to find out its published port
@@ -33,7 +32,15 @@ Run ```docker port cc``` command to find out its published port
3332
```
3433

3534
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/
35+
36+
To check the Command Central container logs run ```docker logs cc```.
37+
The output should look similiar to this:
38+
39+
```bash
40+
2018/04/17 23:00:42 INFO # Command Central version: 10.2.0.0001-0195
41+
```
42+
43+
Open published port in the browser, for example https://0.0.0.0:32769/
3744
to see Command Central login page.
3845

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

6370
```bash
64-
docker run --name n1 -d -P --network ccnetwork store/softwareag/commandcentral:10.1-node
71+
docker run --name n102 -d -P --network ccnetwork store/softwareag/commandcentral:10.2-node
6572
```
6673

6774
By default node container will auto register itself with Command Central using
6875
container's internal id.
6976
7077
After a minute or so the managed node status will change to green (ONLINE).
7178
79+
NOTE that you can add launch and register older versions of Softwarte AG managed installation
80+
for which a corresponding docker image is available. For example
81+
82+
```bash
83+
docker run --name n101 -d -P --network ccnetwork store/softwareag/commandcentral:10.1-node
84+
```
85+
7286
## Create custom Command Central image
7387
74-
You tune up certain aspects of Command Central by modifying its configuration files and creating a custom image with the changes.
88+
You can tune up certain aspects of Command Central by modifying its configuration files and creating a custom image with the changes.
7589
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.
90+
For example, you can optimize Command Central for template development or CI process by instructing Command Central to skip restart
91+
of runtimes at the end of composite template application, register repositories and license files:
7792
7893
```dockerfile
79-
FROM store/softwareag/commandcentral:10.1-server
94+
FROM store/softwareag/commandcentral:10.2-server
8095
# skip runtimes restart
8196
RUN echo com.softwareag.platform.management.client.template.composite.skip.restart.runtimes=true>>$SAG_HOME/profiles/CCE/configuration/config.ini
8297
```
8398
8499
Build the image and run the container:
85100
86101
```bash
87-
docker build -t my/ccserver:10.1 .
88-
docker run --name cc -d -p 8091 --network ccnetwork my/ccserver:10.1
102+
docker build -t my/ccserver:10.2 .
103+
docker run --name mycc -d -p 8091 --network ccnetwork my/ccserver:10.2
89104
```
90105
91106
Use it in your DEV/CI pipeline:
92107
93108
```bash
94-
docker exec cc sagcc exec composite templates apply mytemplate
109+
docker exec mycc sagcc exec composite templates apply mytemplate
95110
```
96111
97112
## Using docker-compose files for dev and test environments
98113
99114
Run example init service from ```docker-compose.yml``` file:
100115
101116
```bash
117+
export EMPOWER_USERNAME=you@company.com
118+
export EMPOWER_PASSWORD=****
119+
export CC_PASSWORD=****
120+
102121
docker-compose run --rm init
103122
```
104123
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'
124+
The init service will:
114125
115-
After a minute or so they both will come online.
126+
* Create and start Command Central container
127+
* Create, start and register a test managed node
128+
* Register master product and fix repositories with provided Empower credentials
116129
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-
```
130+
When it's done running open [Command Central Web UI](https://0.0.0.0:8091)
124131

125132
## Configuring Command Central
126133

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

135142
You can build custom images with Software AG software using
136-
softwareag/commandcentral:10.1-builder image and Command Central templates.
143+
softwareag/commandcentral:10.2-builder image and Command Central templates.
137144

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

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-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-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-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-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
3731
depends_on:
38-
- test1
39-
- test2
4032
- cc
33+
- test1
34+
command: >
35+
bash -c "
36+
sagcc list landscape nodes --wait-for-cc &&
37+
sagcc add repository products name=webMethods-10.2 location=http://sdc.softwareag.com/dataservewebM102/repository username=$EMPOWER_USERNAME password=$EMPOWER_PASSWORD &&
38+
sagcc add repository fixes name=Empower location=http://sdc.softwareag.com/updatges/prodRepo username=$EMPOWER_USERNAME password=$EMPOWER_PASSWORD
39+
"

0 commit comments

Comments
 (0)