Skip to content

Commit 067ad15

Browse files
Pogrebnyak, SergeiPogrebnyak, Sergei
authored andcommitted
Testing docker-compose
1 parent 47be724 commit 067ad15

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ before_install:
1717
- docker network create ccnetwork
1818

1919
script:
20+
- docker-compose run --rm init
21+
- docker-compose down
2022
- docker build --build-arg SOURCE_REGISTRY=$SOURCE_REGISTRY -t $TARGET_REGISTRY/commandcentral:$RELEASE-server .
2123
- docker run --name cc -d -p 127.0.0.1:8091:8091 --network ccnetwork $TARGET_REGISTRY/commandcentral:$RELEASE-server
2224
- docker run --name n1 -d --network ccnetwork -e CC_AUTO_REGISTER=0 $SOURCE_REGISTRY/commandcentral:$RELEASE-node
2325
- docker exec cc sagcc list landscape nodes local -e ONLINE -w 180
2426
- docker exec cc sagcc add landscape nodes alias=n1 url=http://n1:8092 -e OK
2527
- docker exec cc sagcc list landscape nodes n1 -e ONLINE -w 180
28+
- docker stop n1 cc && docker rm n1 cc
2629

2730
after_success:
2831
# - if [ "$TRAVIS_BRANCH" == "master" ]; then

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export CC_PASSWORD=****
157157
docker-compose run --rm init
158158
```
159159

160-
The init service will
160+
The init service will:
161161

162162
* Create and start Command Central container
163163
* Create, start and register a test managed node

docker-compose.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ version: "3"
22

33
services:
44
cc:
5-
image: store/softwareag/commandcentral:10.2-server
5+
#image: store/softwareag/commandcentral:10.2-server
6+
image: softwareag/commandcentral:10.2-server
67
ports:
78
- "8090:8090"
89
- "8091:8091"
910
environment:
1011
- CC_PASSWORD
1112

1213
test1:
13-
image: store/softwareag/commandcentral:10.2-node
14+
# image: store/softwareag/commandcentral:10.2-node
15+
image: softwareag/commandcentral:10.2-node
1416
ports:
1517
- "5555:5555" # IS
1618
- "9000:9000" # UM
@@ -22,18 +24,19 @@ services:
2224
- cc
2325

2426
init:
25-
image: store/softwareag/commandcentral:10.2-server
27+
# image: store/softwareag/commandcentral:10.2-server
28+
image: softwareag/commandcentral:10.2-server
2629
environment:
2730
- CC_SERVER=cc
2831
- CC_PASSWORD
2932
- EMPOWER_USERNAME
3033
- EMPOWER_PASSWORD
34+
depends_on:
35+
- cc
36+
- test1
3137
command: >
3238
bash -c "
3339
sagcc list landscape nodes --wait-for-cc &&
3440
sagcc add repository products name=webMethods-10.2 location=http://sdc.softwareag.com/dataservewebM102/repository username=$EMPOWER_USERNAME password=$EMPOWER_PASSWORD &&
3541
sagcc add repository fixes name=Empower location=http://sdc.softwareag.com/updatges/prodRepo username=$EMPOWER_USERNAME password=$EMPOWER_PASSWORD
3642
"
37-
depends_on:
38-
- cc
39-
- test1

0 commit comments

Comments
 (0)