changeset 157:018f62da1931

DEP-12: add docker version. prevent pulling updates for dangling images
author smith@nwoca.org
date Mon, 31 Jul 2017 20:49:53 +0100
parents 2f794158e9e8
children 4bc3485f8460
files scripts/.functions.sh scripts/updates-pull.sh
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/.functions.sh	Mon Jul 31 20:48:38 2017 +0100
+++ b/scripts/.functions.sh	Mon Jul 31 20:49:53 2017 +0100
@@ -11,6 +11,8 @@
    export SSDT_HOME=$(dirname $SSDT_SCRIPTS)
 fi
 
+export SSDT_DOCKER_VERSION=$(docker version --format '{{.Server.Version}}')
+
 # deletes psql data from specified service
 resetDbVolume() {
 #   Works for named and unnamed volumes and custom $PGDATA.
--- a/scripts/updates-pull.sh	Mon Jul 31 20:48:38 2017 +0100
+++ b/scripts/updates-pull.sh	Mon Jul 31 20:49:53 2017 +0100
@@ -18,7 +18,7 @@
 do
    repo=${line[0]}
    tag=${line[1]}
-   if [[ $repo == docker.ssdt.io* ]]
+   if [[ $repo == docker.ssdt.io* && $tag != *none* ]]
    then
       echo "docker pull ${repo}:${tag}"
       docker pull ${repo}:${tag}