4e40f7829313546235ae1428612d276b373edf07
[demo.git] / heat / ONAP / cloud-config / nbi_install.sh
1 #!/bin/bash
2
3 # Read configuration files
4 GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
5 CODE_REPO=$(cat /opt/config/remote_repo.txt)
6 HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
7 HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
8
9 if [ $HTTP_PROXY != "no_proxy" ]
10 then
11     export http_proxy=$HTTP_PROXY
12     export https_proxy=$HTTPS_PROXY
13 fi
14
15
16 # Download scripts from Nexus
17 update-rc.d nbi_serv.sh defaults
18
19
20 # Run docker containers
21 cd /opt
22 ./nbi_vm_init.sh