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

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


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

commit 9804170a733affd5121c9270d43a2599c12d3dc1
Author: Lari Hotari <[email protected]>
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)
    
    (cherry picked from commit ed5dbb5289f09f913f07a38ba1481727f00f063a)
---
 .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

Reply via email to