openstack-helm/tools/pull-images.sh
portdirect 704cbcbcea Docs: Updated developer documentation to use -infra repo
This PS updates the developer documentation to make use
of the openstack-helm-infra repo and new developer
environment.

Implements: blueprint developer-environment

Change-Id: I45b627f78b9504dc0abfbe7d0061ea3475ee4748
2017-12-06 14:52:16 -06:00

17 lines
384 B
Bash
Executable File

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