aboutsummaryrefslogtreecommitdiffstats
path: root/boot/aai_vm_init.sh
diff options
context:
space:
mode:
authorplatania <platania@research.att.com>2017-02-23 12:21:02 -0500
committerplatania <platania@research.att.com>2017-02-23 12:21:02 -0500
commitb22c5188b5979d4952010393eb2c51ada2905c27 (patch)
treeea6d181352e4ffd0b0a3506c434241ba9dcd51a4 /boot/aai_vm_init.sh
parent6e966682a4e000b4fd57740e5a44d089230f1d04 (diff)
update boot scripts
Change-Id: If96e0eb4130d1730aba0ef53901705fa7a17d64f Signed-off-by: platania <platania@research.att.com>
Diffstat (limited to 'boot/aai_vm_init.sh')
-rw-r--r--boot/aai_vm_init.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/aai_vm_init.sh b/boot/aai_vm_init.sh
index 92b7e580..7a92fc4c 100644
--- a/boot/aai_vm_init.sh
+++ b/boot/aai_vm_init.sh
@@ -9,14 +9,14 @@ GITLAB_USERNAME=$(cat /opt/config/gitlab_username.txt)
GITLAB_PASSWD=$(cat /opt/config/gitlab_password.txt)
# Pull HBase container from a public docker hub
-docker pull aaidocker/aai-hbase-1.2.3
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+docker pull $NEXUS_USERNAME/aaidocker/aai-hbase-1.2.3
docker rm -f hbase-1.2.3
docker run -d --net=host --name="hbase-1.2.3" aaidocker/aai-hbase-1.2.3
# Wait 3 minutes before instantiating the A&AI container
sleep 180
-docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
docker pull $NEXUS_DOCKER_REPO/openecomp/ajsc-aai:latest
docker rm -f aai-service
docker run --name=aai-service --net=host -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt -it -e GITLAB_CERTNAME=$GITLAB_CERTNAME -e GITLAB_USERNAME=$GITLAB_USERNAME -e GITLAB_PASSWORD=$GITLAB_PASSWD -e AAI_REPO_PATH=r/aai -e AAI_CHEF_ENV=simpledemo -d -e AAI_CHEF_LOC=/var/chef/aai-data/environments -e docker_gitbranch=develop $NEXUS_DOCKER_REPO/openecomp/ajsc-aai:latest