blob: 09ae53aaf1f78a882d7b0ead920f7ca43129241f (
plain)
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
|
#!/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-aaf.git
cd dcae-startup-vm-aaf && ./deploy.sh
|