diff options
author | eh552t <eh552t@intl.att.com> | 2017-09-04 16:21:14 +0200 |
---|---|---|
committer | eh552t <eh552t@intl.att.com> | 2017-09-04 16:21:21 +0200 |
commit | 930b5c77f0efcd79cb861913aa6e27908486f120 (patch) | |
tree | 6286a7b3bc9b3017e2ee2ba69c9a958a57a27a4e /boot/clamp_vm_init.sh | |
parent | 67760326c0615897c2396e192cdd336c0ed90b41 (diff) |
Don't put tag latest but sed in docker-compose
Change-Id: I82de4f3147d2406f73bc07436595ef2933961f4f
Signed-off-by: eh552t <eh552t@intl.att.com>
Issue-Id: CLAMP-47
Diffstat (limited to 'boot/clamp_vm_init.sh')
-rw-r--r-- | boot/clamp_vm_init.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/boot/clamp_vm_init.sh b/boot/clamp_vm_init.sh index abc01e15..f8b26e30 100644 --- a/boot/clamp_vm_init.sh +++ b/boot/clamp_vm_init.sh @@ -15,14 +15,16 @@ rm -rf src/ # No configuration change here as directly done in the CLAMP repo -# Pull the clamp docker image from nexus and tag it +# Pull the clamp docker image from nexus # Maria db will be pulled automatically from docker.io during docker-compose docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO docker pull $NEXUS_DOCKER_REPO/onap/clamp:$DOCKER_IMAGE_VERSION -docker tag $NEXUS_DOCKER_REPO/onap/clamp:$DOCKER_IMAGE_VERSION onap/clamp:latest cd extra/docker/clamp/ +# Change the Clamp docker image name in the docker-compose.yml to match the one downloaded +sed -i "/image: onap\/clamp/c\ image: $NEXUS_DOCKER_REPO\/onap\/clamp:$DOCKER_IMAGE_VERSION" docker-compose.yml + # Start Clamp and MariaDB containers with docker compose and clamp/extra/docker/clamp/docker-compose.yml /opt/docker/docker-compose up -d |