summaryrefslogtreecommitdiffstats
path: root/dcae-demo-controller/src/main/docker-build/controller-shutdown.sh
blob: 7f8c6b3765b51a76a6020ed3b564a33eb3c78de3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -v

export JAVA_HOME=/opt/app/java/jdk/jdk170
export GROOVY_HOME=/opt/app/groovy/246
export PATH=$JAVA_HOME/bin:$GROOVY_HOME/bin:/opt/app/git/2.4.1/bin:$PATH

export ZONE=$(grep ZONE /opt/app/dcae-controller/config.yaml | sed s/ZONE:.//)

cd /opt/app/dcae-controller-platform-server

bin/dcae-controller.sh restart

bin/dcae-controller.sh undeploy-service-instance -i $ZONE -s vm-docker-host-1
bin/dcae-controller.sh undeploy-service-instance -i $ZONE -s vm-postgresql
bin/dcae-controller.sh undeploy-service-instance -i $ZONE -s vm-cdap-cluster