Mercurial > public > ssdt-docker
annotate scripts/updates-pull.sh @ 328:1f0ff7540734
USASR-4075 Forcing Unique Admin Password
author | aldrich@ssdt-ohio.org |
---|---|
date | Wed, 04 Dec 2019 11:57:48 +0000 |
parents | fea886ba7279 |
children | 9afc8cb478f6 |
rev | line source |
---|---|
54 | 1 #!/bin/bash |
49 | 2 # |
3 # Pulls updates from upstream repository for images matching filter. The | |
4 # default filter pulls all ssdt application images. | |
5 # | |
6 # Usage: | |
7 # pull-updates.sh [application] [filter] | |
8 # | |
9 # defaults: | |
10 # application=all applications | |
11 # filter=label=io.ssdt.app[=application] | |
12 # | |
13 # Note: if filter is provided, the first argument is ignored. A complete filter must be supplied. | |
14 # | |
191
fea886ba7279
DEP-12: add source for .functions.sh to all scripts using compose
smith@nwoca.org
parents:
157
diff
changeset
|
15 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" |
fea886ba7279
DEP-12: add source for .functions.sh to all scripts using compose
smith@nwoca.org
parents:
157
diff
changeset
|
16 |
49 | 17 APP=${1:+=$1} |
18 FILTER=${2:-label=io.ssdt.app$APP} | |
19 while read -a line | |
20 do | |
21 repo=${line[0]} | |
22 tag=${line[1]} | |
157
018f62da1931
DEP-12: add docker version. prevent pulling updates for dangling images
smith@nwoca.org
parents:
54
diff
changeset
|
23 if [[ $repo == docker.ssdt.io* && $tag != *none* ]] |
49 | 24 then |
25 echo "docker pull ${repo}:${tag}" | |
26 docker pull ${repo}:${tag} | |
27 fi | |
28 done < <(docker images --filter "$FILTER") |