Browse Source

Dynamically download images

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

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

@ -37,11 +37,10 @@ apt-get install golang-go
go version go version
wget -q "https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh" wget -q "https://raw.githubusercontent.com/moby/moby/master/contrib/download-frozen-image-v2.sh"
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://' | sort | uniq` IMAGES=`grep '^\s*image' docker-compose.yml | sed 's/image://' | sort | uniq`
IMAGES="getumbrel/dashboard:v0.2.1 getumbrel/manager:v0.1.1 getumbrel/middleware:v0.1.1 lncm/bitcoind:v0.20.0 lncm/lnd:v0.9.2-root-experimental nginx:1.17.8 alpine:3.11" echo "List of images to download: $IMAGES"
echo "Images to download: $IMAGES"
chmod +x ./download-frozen-image-v2.sh chmod +x ./download-frozen-image-v2.sh
./download-frozen-image-v2.sh docker-images $IMAGES ./download-frozen-image-v2.sh docker-images "${IMAGES//\"}"
mkdir ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images mkdir ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images
cp -avr docker-images/ ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images cp -avr docker-images/ ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images
Loading…
Cancel
Save