tar-images 442 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -ex
  3. cd $(dirname $0)/..
  4. IMAGES=$(bin/host_ros c images -i build/initrd/usr/share/ros/os-config.yml)
  5. echo "tar-image: IMAGES=$IMAGES"
  6. for i in $IMAGES; do
  7. echo "tar-image: pull($i)"
  8. if [ "${FORCE_PULL}" = "1" ] || ! docker inspect $i >/dev/null 2>&1; then
  9. docker pull $i
  10. fi
  11. done
  12. echo "tar-images: docker save ${IMAGES} > build/images.tar"
  13. docker save ${IMAGES} > build/images.tar
  14. echo "tar-images: DONE"