mirror of
https://github.com/rancher/os.git
synced 2025-06-21 12:37:04 +00:00
18 lines
441 B
Bash
Executable File
18 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
IMAGES=$(bin/host_ros c images -i build/initrd/usr/share/ros/os-config.yml)
|
|
echo "tar-image: IMAGES=$IMAGES"
|
|
for i in $IMAGES; do
|
|
echo "tar-image: pull($i)"
|
|
if [ "${FORCE_PULL}" = "1" ] || ! docker inspect $i >/dev/null 2>&1; then
|
|
docker pull $i
|
|
fi
|
|
done
|
|
|
|
echo "tar-images: docker save ${IMAGES} > build/images.tar"
|
|
docker save ${IMAGES} > build/images.tar
|
|
echo "tar-images: DONE"
|