Browse Source

Download multiple images

master
Mayank 5 years ago
parent
commit
d876851d88
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 2
      stage0/00-configure-apt/00-run.sh
  2. 6
      stage2/05-docker-compose/01-run.sh

2
stage0/00-configure-apt/00-run.sh

@ -24,7 +24,7 @@ echo "Go installed, now downloading images"
wget -q "https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh"
chmod +x download-frozen-image-v2.sh
./download-frozen-image-v2.sh docker-images getumbrel/middleware:latest
./download-frozen-image-v2.sh docker-images getumbrel/middleware:latest getumbrel/manager:latest getumbrel/dashboard:latest
ls docker-images/
mkdir -p ${ROOTFS_DIR}/tmp/docker-images
cp -avr docker-images/ ${ROOTFS_DIR}/tmp

6
stage2/05-docker-compose/01-run.sh

@ -29,8 +29,4 @@ echo "Copying the compose service to rootfs (etc/init.d)"
cp files/compose-service ${ROOTFS_DIR}/etc/init.d/umbrelbox
echo "Docker stuff installed!"
on_chroot << EOF
tar -cC '/tmp/docker-images' . | docker load
EOF
echo "Docker stuff installed!"
Loading…
Cancel
Save