Browse Source

See what's installed

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

36
build-test.sh

@ -1,24 +1,26 @@
#!/bin/bash -e #!/bin/bash -e
set -x set -x
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)
echo "List of images to download: $IMAGES"
mkdir dockerpi
echo "Running Docker Pi"
docker run --name dockerpi -v dockerpi:/sdcard lukechilds/dockerpi
docker ps docker ps
echo "Downloading install script"
docker exec -d dockerpi curl -fsSL https://get.docker.com -o docker-install.sh # wget -q "https://raw.githubusercontent.com/getumbrel/umbrel-compose/master/docker-compose.yml"
echo "Running install script" # IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g' | sed '/^$/d;s/[[:blank:]]//g' | sort | uniq)
docker exec -d dockerpi ./docker-install.sh # echo "List of images to download: $IMAGES"
echo "Pulling images in docker"
while IFS= read -r image; do # mkdir dockerpi
docker exec -d docker pull --platform=linux/arm/v7 $image # echo "Running Docker Pi"
done <<< "$IMAGES" # docker run --name dockerpi -v dockerpi:/sdcard lukechilds/dockerpi
ls dockerpi # docker ps
ls dockerpi/var/lib/tor # echo "Downloading install script"
# docker exec -d dockerpi curl -fsSL https://get.docker.com -o docker-install.sh
# echo "Running install script"
# docker exec -d dockerpi ./docker-install.sh
# echo "Pulling images in docker"
# while IFS= read -r image; do
# docker exec -d docker pull --platform=linux/arm/v7 $image
# done <<< "$IMAGES"
# ls dockerpi
# ls dockerpi/var/lib/tor
# docker save $IMAGES -o umbrel-docker-images.tar # docker save $IMAGES -o umbrel-docker-images.tar
# du -h umbrel-docker-images.tar # du -h umbrel-docker-images.tar
# docker save $IMAGES | gzip > umbrel-docker-images.tar.gz # docker save $IMAGES | gzip > umbrel-docker-images.tar.gz

Loading…
Cancel
Save