diff options
author | 2017-02-24 21:19:41 +0000 | |
---|---|---|
committer | 2017-02-24 21:19:41 +0000 | |
commit | 2a392869cb8013245ad4a764363f8fb8e9654de9 (patch) | |
tree | 4d7fbe5a3e74526af9fd84fbf9f5e116ccfa7a9e /prep-vm1-message-router.sh | |
parent | dd7aeafdb1d7596c1e825c7c12b2ab672bba25b9 (diff) |
push another branch
Change-Id: Ibe8c9a38801d10f6c95fd7da4750ee64392a8b1b
Signed-off-by: Ubuntu <lji@research.att.com>
Diffstat (limited to 'prep-vm1-message-router.sh')
-rwxr-xr-x | prep-vm1-message-router.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/prep-vm1-message-router.sh b/prep-vm1-message-router.sh new file mode 100755 index 0000000..d884071 --- /dev/null +++ b/prep-vm1-message-router.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e + +# Assuming running this script from a VM that is spun up by Open eCOMP HEAT template. +# Hence it has the git and docker registry configurations provided as files under /opt/config + +if [ -e /opt/config/gitlab_repo.txt ]; then + export GIT_PATH=`cat cat /opt/config/gitlab_repo.txt` +fi +if [ -e /opt/config/gitlab_username.txt ]; then + export GIT_USERNAME=`cat /opt/config/gitlab_username.txt` +fi +if [ -e /opt/config/gitlab_password.txt ]; then + export GIT_PASSWORD=`cat /opt/config/gitlab_password.txt` +fi +if [ -e /opt/config/gitlab_branch.txt ]; then + export GIT_BRANCH=`cat /opt/config/gitlab_branch.txt` +else + export GIT_BRANCH="master" +fi + + + +#https://23.253.149.175/lj1412/dcae-startup-vm-message-router + + +git -c http.sslVerify=false clone -b ${GIT_BRANCH} https://${GIT_USERNAME}:${GIT_PASSWORD}@${GIT_PATH}/dcae-startup-vm-message-router.git +cd dcae-startup-vm-message-router && ./deploy.sh + |