forked from SoftwareAG/sagdevops-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
102 lines (95 loc) · 3.39 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
94
95
96
97
98
99
100
101
102
###############################################################################
# Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################################
version: "3.2"
services:
cc: # builder service
# image: ${CC_REG}/commandcentral-server:${CC_TAG}
image: ${REG}/commandcentral-builder:${TAG}
# build:
# context: .
# args:
# - BUILDER_IMAGE=${CC_REG}/commandcentral-builder:${CC_TAG}
# - NODE_IMAGE=${CC_REG}/commandcentral-node:${TAG}
# - REPO_PRODUCT_NAME=SIC
# - REPO_PRODUCT_URL=http://aquarius-bg.eur.ad.sag/dataserve103oct2018_SIC/repository/
# - REPO_FIX_NAME=QARepo
# - REPO_FIX_URL=http://aquarius-va.ame.ad.sag/updates/QARepo
# - LICENSES_URL=http://irepo.eur.ad.sag/projects/DEVOPS/repos/command-central/raw/licenses/sag10-rnd-lnx-licenses.zip?at=refs%2Fheads%2Fmaster
environment:
- REPO_PRODUCT_URL
- REPO_FIX_URL
- LICENSES_URL
- REPO_PRODUCT_NAME
- REPO_FIX_NAME
ports:
- 8091 # https://$(docker-compose port cc 8091)/cce/web
- 8092 # http://$(docker-compose port cc 8092)/spm
volumes:
- ./templates/:/opt/sagtools/profiles/CCE/data/templates/composite/
- ./licenses/:/opt/sagtools/licenses/:ro
- ./environments/:/src/environments/:ro
# - ./scripts/init.sh:/opt/sagtools/init.sh:ro
# - ./scripts/inventory.sh:/opt/sagtools/inventory.sh:ro
# - ./scripts/provision.sh:/opt/sagtools/provision.sh:ro
sagcc: # sagcc wrapper
image: ${CC_REG}/commandcentral-client:${CC_TAG}-alpine
volumes:
- ./:/src/
environment:
- CC_SERVER
- CC_PASSWORD
entrypoint: sagcc
command: --help
antcc: # antcc wrapper
image: ${CC_REG}/commandcentral-client:${CC_TAG}-antcc
volumes:
- ./:/src/
environment:
- CC_SERVER
- CC_PASSWORD
- CC_ENV=${CC_ENV:-dev}
entrypoint: antcc
command: -p
apply: # remote apply wrapper
image: ${CC_REG}/commandcentral-client:${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
build: # ABE wrapper (built locally)
image: ${REG}/asset-builder:${TAG}
volumes:
- .:/src/ # required
environment:
- BUILD_NUMBER
mirrors: # antcc wrapper for mirrors creation
image: ${CC_REG}/commandcentral-client:${CC_TAG}-antcc
volumes:
- ./:/src/
environment:
- CC_SERVER
- CC_PASSWORD
- CC_ENV=${CC_ENV:-devcc}
entrypoint: antcc
command: waitcc mirrors -Drelease=${TAG}