You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2025/01/29 17:33:48 UTC

(pulsar) branch master updated: [fix][ci] Configure Docker data-root to /mnt/docker to avoid running out of disk space (#23909)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new ed5dbb5289f [fix][ci] Configure Docker data-root to /mnt/docker to avoid running out of disk space (#23909)
ed5dbb5289f is described below

commit ed5dbb5289f09f913f07a38ba1481727f00f063a
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Wed Jan 29 19:33:40 2025 +0200

    [fix][ci] Configure Docker data-root to /mnt/docker to avoid running out of disk space (#23909)
---
 .github/actions/clean-disk/action.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/actions/clean-disk/action.yml b/.github/actions/clean-disk/action.yml
index d74c3f25fc6..e67ce59a08d 100644
--- a/.github/actions/clean-disk/action.yml
+++ b/.github/actions/clean-disk/action.yml
@@ -46,6 +46,15 @@ runs:
             time df -BM / /mnt
             echo "::endgroup::"
           done
+          if [[ "${{ inputs.mode }}" == "full" ]]; then
+            echo "::group::Moving /var/lib/docker to /mnt/docker"
+            sudo systemctl stop docker
+            echo '{"data-root": "/mnt/docker"}' | sudo tee /etc/docker/daemon.json
+            sudo mv /var/lib/docker /mnt/docker
+            sudo systemctl start docker
+            time df -BM / /mnt
+            echo "::endgroup::"
+          fi
           echo "::group::Cleaning apt state"
           time sudo bash -c "apt-get clean; apt-get autoclean; apt-get -y --purge autoremove"
           time df -BM / /mnt