diff --git a/build-test.sh b/build-test.sh index 348d301..1945d43 100755 --- a/build-test.sh +++ b/build-test.sh @@ -1,17 +1,21 @@ #!/bin/bash -e set -x -uname -m +# uname -m # sudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages # docker run --rm --privileged multiarch/qemu-user-static --reset -p yes # This step will execute the registering scripts -mkdir docker-dir +# mkdir docker-dir # docker run --rm -dt --name dockerdebian -v docker-dir:/var/lib/docker multiarch/debian-debootstrap:armhf-buster-slim bash -docker run --rm -dt --name dockerdebian -v docker-dir:/var/lib/docker debian:buster-slim bash -docker exec -t dockerdebian bash -c 'apt-get update; apt-get install curl -y; export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt; curl -fsSL https://get.docker.com -o get-docker.sh; chmod +x get-docker.sh; sh get-docker.sh;' -docker exec -t dockerdebian docker --version +# docker run --rm -dt --name dockerdebian -v docker-dir:/var/lib/docker debian:buster-slim bash +# docker exec -t dockerdebian bash -c 'apt-get update; apt-get install curl -y; export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt; curl -fsSL https://get.docker.com -o get-docker.sh; chmod +x get-docker.sh; sh get-docker.sh;' +# docker exec -t dockerdebian docker --version -ls docker-dir +# ls docker-dir + +ls /var/lib/docker/overlay2/ +docker rmi -f $(docker images -a -q) +ls /var/lib/docker/overlay2/ 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) @@ -27,10 +31,10 @@ echo "List of images to download: $IMAGES" # docker exec -d dockerpi ./docker-install.sh echo "Pulling images in docker" while IFS= read -r image; do - docker exec -t dockerdebian docker pull --platform=linux/arm/v7 $image + docker pull --platform=linux/arm/v7 $image done <<< "$IMAGES" -ls docker-dir +ls /var/lib/docker/overlay2/ # ls dockerpi # ls dockerpi/var/lib/tor