X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=boot%2Fclamp_vm_init.sh;h=f8b26e3062eb7004068aea64702324a574af7042;hb=refs%2Fheads%2Fbeijing;hp=abc01e15e99cffe689f06d004d3f0b38ec0a2fc4;hpb=009c0af9c3b0089646267c404eb3e94ae94b0f10;p=demo.git 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