forked from SoftwareAG/sagdevops-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (85 loc) · 3.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "3.2"
services:
cc: # builder service
image: ${CC_BUILDER_IMAGE}:${TAG}
ports:
- 8091 # CCE
- 8092 # target node SPM
build:
context: .
args:
- BASE_IMAGE=${CC_SERVER_IMAGE}:${CC_TAG} # base image for the builder, e.g. server-10.3
- NODE_IMAGE=${CC_NODE_IMAGE} # base image for the node, e.g. node-10.2
- CC_INSTALLER # TODO: remove me?
- CC_INSTALLER_URL # TODO: remove me?
- LICENSES_URL # licenses .zip, e.g. 10.x
- REPO_HOST # default AQU host
- REPO_PRODUCT # product release repo, e.g. CC_PI_102apr2018
- REPO_FIX # fix release repo, e.g. GA_Fix_Repo
# environment:
# - REPO_HOST # alternative, closest AQU host
# - REPO_PRODUCT # alternative, product repo within the same release
# - REPO_FIX # alternative, fix repo
# - LICENSES_URL # additional licenses
volumes:
- ./templates/:/opt/sagtools/profiles/CCE/data/templates/composite/
- ./scripts/init.sh:/opt/sagtools/init.sh
- ./scripts/test.sh:/opt/sagtools/test.sh
- ./scripts/inventory.sh:/opt/sagtools/inventory.sh
- ./scripts/provision.sh:/opt/sagtools/provision.sh
sagcc: # sagcc wrapper
image: ${CC_CLIENT_IMAGE}:${CC_TAG}-alpine
volumes:
- ./:/src/
environment:
- CC_SERVER
- CC_PASSWORD
entrypoint: sagcc
command: --help
sagccant: # sagccant wrapper
image: ${CC_CLIENT_IMAGE}:${CC_TAG}
volumes:
- ./:/src/
environment:
- CC_SERVER
- CC_PASSWORD
entrypoint: sagccant
command: -p
apply: # remote apply wrapper
image: ${CC_CLIENT_IMAGE}:${CC_TAG}-alpine
volumes:
- ./:/src/
environment:
- CC_SERVER
- CC_PASSWORD
- CC_WAIT
- CC_CHECK_EVERY=10
entrypoint: sagcc exec templates composite apply --sync-job
command: --help
provision: # default provisioner
image: ${CC_BUILDER_IMAGE}:${TAG}
entrypoint: /opt/sagtools/provision.sh
volumes:
- ./templates/:/opt/sagtools/profiles/CCE/data/templates/composite/
- ./scripts/inventory.sh:/opt/sagtools/inventory.sh
- ./scripts/provision.sh:/opt/sagtools/provision.sh
# # default builder
# node:
# # image: annonymous
# build:
# context: .
# environment:
# - CC_AUTO_REGISTER=0 # No auto register as we don't have a server
# test:
# # FIXME: use client image with antcc
# image: ${DOCKER_REGISTRY_URL}/${ORG}/commandcentral:${RELEASE}-internal
# volumes:
# - ./clients/docker.properties:/root/.sag/cc.properties
# - ./:/usr/share/sagcc/init/
# environment:
# - CC_SERVER=cc
# - CC_TEMPLATE
# - SAG_AQUARIUS
# - EMPOWER_USR
# - EMPOWER_PSW
# command: antcc templateApply templateTest -Dbuild.dir=/tmp