1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 05:57:03 +00:00
os/scripts/mk-images-tar.sh

16 lines
342 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
suffix=""
[ "$ARCH" == "amd64" ] || suffix="_${ARCH}"
cd $(dirname $0)/..
2015-08-07 14:34:05 +00:00
. scripts/build-common
images="$(build/host_ros c images -i os-config${suffix}.yml)"
for i in ${images}; do
[ "${FORCE_PULL}" != "1" ] && docker inspect $i >/dev/null 2>&1 || docker pull $i;
done
docker save ${images} > ${BUILD}/images.tar