diff options
author | yangyan <yangyanyj@chinamobile.com> | 2017-12-22 18:19:52 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2017-12-22 18:20:02 +0800 |
commit | 7c82cbe908ff9f1099f8a862c019abca873f3d91 (patch) | |
tree | 5f752379fc45215af6834dd81958535e2c37dd2c | |
parent | cce4232ea47a5556b9cce5a9baf34adfed68b3d8 (diff) |
Update docker build scriptamsterdam
Issue-ID: VFC-627
Change-Id: I30ce3b8f4098aea852fd2d166544bf6e24e23846
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-x | ems/microservice-standalone/src/main/assembly/docker/Dockerfile | 2 | ||||
-rwxr-xr-x | ems/microservice-standalone/src/main/assembly/docker/build_image.sh | 12 | ||||
-rw-r--r-- | ems/version.properties | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/ems/microservice-standalone/src/main/assembly/docker/Dockerfile b/ems/microservice-standalone/src/main/assembly/docker/Dockerfile index a3dd32c..11e55bd 100755 --- a/ems/microservice-standalone/src/main/assembly/docker/Dockerfile +++ b/ems/microservice-standalone/src/main/assembly/docker/Dockerfile @@ -13,7 +13,7 @@ WORKDIR /service RUN mkdir emsdriver # get binary zip from nexus -RUN wget -q -O emsdiver-standalone.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=staging&g=org.onap.vfc.nfvo.driver.ems.ems&a=emsdriver-standalone&v=LATEST&e=zip' && \ +RUN wget -q -O emsdiver-standalone.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=staging&g=org.onap.vfc.nfvo.driver.ems.ems&a=emsdriver-standalone&v=1.0.2&e=zip' && \ unzip emsdiver-standalone.zip -d emsdriver && \ rm -rf emsdiver-standalone.zip diff --git a/ems/microservice-standalone/src/main/assembly/docker/build_image.sh b/ems/microservice-standalone/src/main/assembly/docker/build_image.sh index 0253a1f..5fcdc54 100755 --- a/ems/microservice-standalone/src/main/assembly/docker/build_image.sh +++ b/ems/microservice-standalone/src/main/assembly/docker/build_image.sh @@ -6,7 +6,7 @@ cd ${DOCKER_BUILD_DIR} BUILD_ARGS="--no-cache" ORG="onap" -VERSION="1.0.1" +VERSION="1.0.2" PROJECT="vfc" IMAGE="emsdriver" DOCKER_REPOSITORY="nexus3.onap.org:10003" @@ -21,20 +21,20 @@ if [ $HTTPS_PROXY ]; then fi function build_image { - echo "Start build docker image: ${IMAGE_NAME}" - docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:latest . + echo "Start build docker image: ${IMAGE_NAME}:${VERSION}-latest" + docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION}-latest . } function push_image_tag { TAG_NAME=$1 echo "Start push ${TAG_NAME}" - docker tag ${IMAGE_NAME}:latest ${TAG_NAME} + docker tag ${IMAGE_NAME}:${VERSION}-latest ${TAG_NAME} docker push ${TAG_NAME} } function push_image { - echo "Start push ${IMAGE_NAME}:latest" - docker push ${IMAGE_NAME}:latest + echo "Start push ${IMAGE_NAME}:${VERSION}-latest" + docker push ${IMAGE_NAME}:${VERSION}-latest push_image_tag ${IMAGE_NAME}:${VERSION}-SNAPSHOT-latest push_image_tag ${IMAGE_NAME}:${VERSION}-STAGING-latest diff --git a/ems/version.properties b/ems/version.properties index 3903250..2263272 100644 --- a/ems/version.properties +++ b/ems/version.properties @@ -1,6 +1,6 @@ major=1
minor=0
-patch=1
+patch=2
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT
|