diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-04-06 21:06:36 +0000 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-04-06 21:06:43 +0000 |
commit | a4a1e64a504003c927b2aba690460f9293ee412c (patch) | |
tree | f57fdb2cdead25315f4c1d49fcd10bada171e401 /ajsc-aai | |
parent | 1ce8b3916c0b1b731571150412f594c0be58ecd2 (diff) |
Update the startup to default git server
Change-Id: Ib71cb764fc0f28b9b8507164bd765edd791dc6bb
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'ajsc-aai')
-rw-r--r-- | ajsc-aai/src/main/resources/docker/startup.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ajsc-aai/src/main/resources/docker/startup.sh b/ajsc-aai/src/main/resources/docker/startup.sh index 2d8ea02..3d7c0fc 100644 --- a/ajsc-aai/src/main/resources/docker/startup.sh +++ b/ajsc-aai/src/main/resources/docker/startup.sh @@ -65,11 +65,17 @@ if [ ! -z "$ARG" ] && [ "$ARG" = "simple" ]; then else PROTOCOL=${PROTOCOL:-https}; - GITLAB_CERTNAME=${GITLAB_CERTNAME}; - GITLAB_USERNAME=${GITLAB_USERNAME}; - GITLAB_PASSWORD=${GITLAB_PASSWORD}; + GIT_SERVER_URL=${GIT_SERVER_URL:-gerrit.onap.org}; + GIT_USERNAME=${GIT_USERNAME}; + GIT_PASSWORD=${GIT_PASSWORD}; - docker_giturl=${PROTOCOL}://${GITLAB_USERNAME}:${GITLAB_PASSWORD}@${GITLAB_CERTNAME}/${AAI_REPO_PATH}; + docker_giturl=""; + + if [ ! -z "$GIT_USERNAME" ] && [ ! -z "$GIT_PASSWORD" ]; then + docker_giturl=${PROTOCOL}://${GIT_USERNAME}:${GIT_PASSWORD}@${GIT_SERVER_URL}/${AAI_REPO_PATH}; + else + docker_giturl=${PROTOCOL}://${GIT_SERVER_URL}/${AAI_REPO_PATH}; + fi cd /var/chef/ |