From d77b8e2136c13308b2143496c3251cf2a9e6a566 Mon Sep 17 00:00:00 2001 From: Mayank Date: Fri, 3 Jul 2020 10:19:16 +0530 Subject: [PATCH] Dynamically download images --- stage2/05-docker-compose/01-run.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stage2/05-docker-compose/01-run.sh b/stage2/05-docker-compose/01-run.sh index 01a36df..162c64f 100755 --- a/stage2/05-docker-compose/01-run.sh +++ b/stage2/05-docker-compose/01-run.sh @@ -37,11 +37,10 @@ apt-get install golang-go go version 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" -#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 "Images to download: $IMAGES" +IMAGES=`grep '^\s*image' docker-compose.yml | sed 's/image://' | sort | uniq` +echo "List of images to download: $IMAGES" 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 cp -avr docker-images/ ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/images \ No newline at end of file