Browse Source

zip entire docker dir

master
Mayank 5 years ago
parent
commit
1c0de4939d
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 4
      .github/workflows/on-push.yml
  2. 9
      build-test.sh

4
.github/workflows/on-push.yml

@ -34,6 +34,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: /home/runner/overlay2.tar.gz asset_path: /home/runner/docker.tar.gz
asset_name: overlay2.tar.gz asset_name: docker.tar.gz
asset_content_type: application/gzip asset_content_type: application/gzip

9
build-test.sh

@ -31,11 +31,10 @@ IMAGES=$(grep '^\s*image' docker-compose.yml | sed 's/image://' | sed 's/\"//g'
docker pull --platform=linux/arm/v7 alpine:3.11 docker pull --platform=linux/arm/v7 alpine:3.11
docker images -a docker images -a
echo "Size of overlay 2 dir:" du -sh /var/lib/docker
du -sh /var/lib/docker/overlay2 cd /var/lib
tar -czvf ~/overlay2.tar.gz /var/lib/docker/overlay2 tar -czvf ~/docker.tar.gz docker
echo "Size of overlay 2 tar file:" du -h ~/docker.tar.gz
du -h ~/overlay2.tar.gz
# ls dockerpi # ls dockerpi
# ls dockerpi/var/lib/tor # ls dockerpi/var/lib/tor
# docker save $IMAGES -o umbrel-docker-images.tar # docker save $IMAGES -o umbrel-docker-images.tar

Loading…
Cancel
Save