This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 74f1d0e50c1 [fix][ci] Configure Docker data-root to /mnt/docker to
avoid running out of disk space (#23909)
74f1d0e50c1 is described below
commit 74f1d0e50c1c92903322b8c2e8c0af4283827bcc
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