diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-08 18:37:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-08 18:37:18 +0200 |
| commit | 54abd4ffcfe44f5d7223ee701360eff3e944e4c9 (patch) | |
| tree | e61e0029ab908a8d5f02091487a7cbe6f31eaf16 | |
| parent | 956e50bce166663da04601bd01888d879d6f80e8 (diff) | |
| parent | 1ce9257ebd184d079af40a72fd1a618893743ec9 (diff) | |
| download | rust-54abd4ffcfe44f5d7223ee701360eff3e944e4c9.tar.gz rust-54abd4ffcfe44f5d7223ee701360eff3e944e4c9.zip | |
Rollup merge of #70847 - pietroalbini:ci-move-docker-lib, r=Mark-Simulacrum
ci: move /var/lib/docker to /mnt on GHA There are some builders that are running out of disk space while building the Docker images, such as arm-android. This moves and symlinks `/var/lib/docker` to the `/mnt` partition on Linux GHA. Example of a build failing because of this: https://github.com/rust-lang-ci/rust/runs/564628621
| -rwxr-xr-x | src/ci/scripts/symlink-build-dir.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ci/scripts/symlink-build-dir.sh b/src/ci/scripts/symlink-build-dir.sh index c77059c00ac..50178b9c33e 100755 --- a/src/ci/scripts/symlink-build-dir.sh +++ b/src/ci/scripts/symlink-build-dir.sh @@ -24,4 +24,10 @@ elif isLinux && isGitHubActions; then mv "${current_dir}" /mnt/more-space/workspace ln -s /mnt/more-space/workspace "${current_dir}" cd "${current_dir}" + + # Move the Docker data directory to /mnt + sudo systemctl stop docker.service + sudo mv /var/lib/docker /mnt/docker + sudo ln -s /mnt/docker /var/lib/docker + sudo systemctl start docker.service fi |
