Browse Source

Pull one by one

master
Mayank 5 years ago
parent
commit
09b2714fb8
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 4
      build-test.sh

4
build-test.sh

@ -2,7 +2,9 @@ docker --version
wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml" wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml"
IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq) IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq)
echo "List of images to download: $IMAGES" echo "List of images to download: $IMAGES"
docker pull --platform=linux/arm/v7 $IMAGES while IFS= read -r image; do
docker pull --platform=linux/arm/v7 $image
done <<< "$IMAGES"
docker images docker images
docker save $IMAGES -o umbrel-docker-images.tar docker save $IMAGES -o umbrel-docker-images.tar
ls -al ls -al
Loading…
Cancel
Save