# HG changeset patch # User smith@nwoca.org # Date 1456161798 0 # Node ID 757f89c5a19c5978d0525a1480f2e0dd59415b83 # Parent 809ba4a960bc236250d4442889e52fbb420a9dda add script to pull updated ssdt app images diff -r 809ba4a960bc -r 757f89c5a19c scripts/pull-updates.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/pull-updates.sh Mon Feb 22 17:23:18 2016 +0000 @@ -0,0 +1,25 @@ +# +# Pulls updates from upstream repository for images matching filter. The +# default filter pulls all ssdt application images. +# +# Usage: +# pull-updates.sh [application] [filter] +# +# defaults: +# application=all applications +# filter=label=io.ssdt.app[=application] +# +# Note: if filter is provided, the first argument is ignored. A complete filter must be supplied. +# +APP=${1:+=$1} +FILTER=${2:-label=io.ssdt.app$APP} +while read -a line +do + repo=${line[0]} + tag=${line[1]} + if [[ $repo == docker.ssdt.io* ]] + then + echo "docker pull ${repo}:${tag}" + docker pull ${repo}:${tag} + fi +done < <(docker images --filter "$FILTER")