Browse Source

Move bundling to stage 2

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

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

@ -14,11 +14,4 @@ on_chroot apt-key add - < files/raspberrypi.gpg.key
on_chroot << EOF
apt-get update
apt-get dist-upgrade -y
EOF
on_chroot << EOF
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/dashboard:latest
tar -cC 'target_dir' . | docker load
EOF

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

@ -30,3 +30,11 @@ cp files/compose-service ${ROOTFS_DIR}/etc/init.d/umbrelbox
echo "Docker stuff installed!"
echo "Downloading images from Docker Hub"
on_chroot << EOF
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
tar -cC 'target_dir' . | docker load
EOF
Loading…
Cancel
Save