openstack-helm/tools/pull-images.sh
intlabs a89ee54171 Images: add pull all images to makefile
This PS adds a `pull-all-images` target to the makefile, which
requires yq to operate.

Change-Id: I58b871b99f48cbd636b3db66db812be3dfc1a204
2017-10-23 12:26:28 -05:00

10 lines
272 B
Bash
Executable File

#!/bin/bash
set -x
for CHART_DIR in ./*/ ; do
if [ -e ${CHART_DIR}values.yaml ]; then
for IMAGE in $(cat ${CHART_DIR}values.yaml | yq '.images.tags | map(.) | join(" ")' | tr -d '"'); do
docker inspect $IMAGE >/dev/null|| docker pull $IMAGE
done
fi
done