forked from SoftwareAG/sagdevops-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
provisionw
executable file
·24 lines (17 loc) · 873 Bytes
/
provisionw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
TEMPLATE_ALIAS=$1
DIRNAME=`dirname $0`
export COMPOSE_FILE=$DIRNAME/docker-compose.yml
# docker-compose pull cc
docker-compose up -d cc
echo ""
echo "===================================================================="
echo "Command Central Web UI: https://`docker-compose -f $DIRNAME/docker-compose.yml port cc 8091`"
echo "===================================================================="
echo ""
docker-compose exec \
cc bash -c \
"cd /opt/sagtools/profiles/CCE/data/templates/composite/$TEMPLATE_ALIAS; /opt/sagtools/provision.sh $TEMPLATE_ALIAS; if [ -f test.sh ]; then ./test.sh ; fi"
echo "===================================================================="
echo "Command Central Web UI: https://`docker-compose -f $DIRNAME/docker-compose.yml port cc 8091`"
echo "===================================================================="