You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2018/11/08 20:40:43 UTC

[mesos] branch 1.7.x updated (862d978 -> 9f67dfd)

This is an automated email from the ASF dual-hosted git repository.

jieyu pushed a change to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/mesos.git.


    from 862d978  Pushed latest tag to Dockerhub for Mesos mini jenkins script.
     new 377504d  Pushed latest tag to Dockerhub for CentOS jenkins script.
     new 9f67dfd  Fixed the Docker image cleanup in Mesos mini scripts.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 support/jenkins/docker-centos.sh | 10 +++++++++-
 support/jenkins/mini.sh          |  5 +++--
 2 files changed, 12 insertions(+), 3 deletions(-)


[mesos] 02/02: Fixed the Docker image cleanup in Mesos mini scripts.

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jieyu pushed a commit to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 9f67dfd8d5de0225478e9993627254a8cadacabc
Author: Jie Yu <yu...@gmail.com>
AuthorDate: Thu Nov 8 11:32:34 2018 -0800

    Fixed the Docker image cleanup in Mesos mini scripts.
    
    (cherry picked from commit ffe774e7fd62bc8f4be18fb29cfaf2ead690bdba)
---
 support/jenkins/mini.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/support/jenkins/mini.sh b/support/jenkins/mini.sh
index bd18716..a5e44cb 100755
--- a/support/jenkins/mini.sh
+++ b/support/jenkins/mini.sh
@@ -35,8 +35,9 @@ echo "RELEASE_BRANCH=${RELEASE_BRANCH}"
 echo "DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG}"
 
 function cleanup {
-  docker rmi "$(docker images -q "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}")" || true
-  docker rmi "$(docker images -q "${DOCKER_IMAGE_DISTRO}:${DOCKER_IMAGE_TAG}")" || true
+  docker rmi "${DOCKER_IMAGE}:${DOCKER_IMAGE_LATEST_TAG}" || true
+  docker rmi "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}" || true
+  docker rmi "${DOCKER_IMAGE_DISTRO}:${DOCKER_IMAGE_TAG}" || true
 }
 
 trap cleanup EXIT


[mesos] 01/02: Pushed latest tag to Dockerhub for CentOS jenkins script.

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jieyu pushed a commit to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 377504d131265ce3440124ff42bf34190021c9ec
Author: Jie Yu <yu...@gmail.com>
AuthorDate: Thu Nov 8 11:30:35 2018 -0800

    Pushed latest tag to Dockerhub for CentOS jenkins script.
    
    (cherry picked from commit 78c2396e6af2ffe11d2f14309bb9f67c58d45c7a)
---
 support/jenkins/docker-centos.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/support/jenkins/docker-centos.sh b/support/jenkins/docker-centos.sh
index 5c27cf8..c0612d0 100755
--- a/support/jenkins/docker-centos.sh
+++ b/support/jenkins/docker-centos.sh
@@ -26,8 +26,10 @@ DATE=$(date +%F)
 if [[ "${MESOS_TAG_OR_SHA}" != "${MESOS_SHA}" ]]; then
   # HEAD is also a tag.
   DOCKER_IMAGE_TAG="${MESOS_TAG_OR_SHA}"
+  DOCKER_IMAGE_LATEST_TAG=""
 else
   DOCKER_IMAGE_TAG="${RELEASE_BRANCH}-${DATE}"
+  DOCKER_IMAGE_LATEST_TAG="${RELEASE_BRANCH}"
 fi
 
 echo "MESOS_SHA=${MESOS_SHA}"
@@ -35,7 +37,8 @@ echo "RELEASE_BRANCH=${RELEASE_BRANCH}"
 echo "DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG}"
 
 function cleanup {
-  docker rmi "$(docker images -q "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}")" || true
+  docker rmi "${DOCKER_IMAGE}:${DOCKER_IMAGE_LATEST_TAG}" || true
+  docker rmi "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}" || true
 }
 
 trap cleanup EXIT
@@ -47,3 +50,8 @@ DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG} \
 
 docker login -u "${USERNAME}" -p "${PASSWORD}"
 docker push "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}"
+
+if [ ! -z "${DOCKER_IMAGE_LATEST_TAG}" ]; then
+  docker tag "${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG}" "${DOCKER_IMAGE}:${DOCKER_IMAGE_LATEST_TAG}"
+  docker push "${DOCKER_IMAGE}:${DOCKER_IMAGE_LATEST_TAG}"
+fi