aboutsummaryrefslogtreecommitdiffstats
path: root/docker/prepare_env.sh
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-12-14 11:09:54 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2015-12-14 11:12:30 +0100
commitf7f763859d7cc870df5523952ef8b0053e93bdae (patch)
tree8af5a5471a3be6d18ed65eda47e5126c21788fa1 /docker/prepare_env.sh
parent6726c8ec04f57914a5f7659f25a0fc58f861893b (diff)
Adding BGPVPN repository to the Docker image and scripts
JIRA: FUNCTEST-99 Change-Id: Iaf97241291ba233e1c9597b2274adad81e3ffb01 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'docker/prepare_env.sh')
-rwxr-xr-xdocker/prepare_env.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh
index 3353a342..5a39c840 100755
--- a/docker/prepare_env.sh
+++ b/docker/prepare_env.sh
@@ -129,6 +129,18 @@ if [ $offline == false ]; then
git reset --hard ${VIMS_COMMIT}
fi
+ info "Updating BGPVPN repository...."
+ cd ${BGPVPN_REPO_DIR}
+ if [ ${BGPVPN_BRANCH} != "master" ]; then
+ info "BGPVPN repo: checkout ${BGPVPN_BRANCH} branch..."
+ git checkout ${BGPVPN_BRANCH}
+ fi
+ info "BGPVPN repo: pulling to latest..."
+ git pull
+ if [ ${BGPVPN_COMMIT} != "latest" ]; then
+ info "BGPVPN repo: given commit is ${BGPVPN_COMMIT}. Reseting..."
+ git reset --hard ${BGPVPN_COMMIT}
+ fi
fi
# We do this regardless if its online or offline mode.