Skip to content

Commit

Permalink
Use /dev/sdb1 to save docker's data in CI (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng authored Feb 26, 2024
1 parent a4af869 commit 5e4a2c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-integration-skywalking-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ jobs:
docker rmi $(docker images -q) -f
df -h
# the runner machine has a disk /dev/sdb1 which mounted to /mnt, and it has more free disk than /dev/sda1.
# we can use it to save docker's data to avoid bookie error due to lack of disk.
- name: change docker data dir
run: |
sudo service docker stop
echo '{ "exec-opts": ["native.cgroupdriver=cgroupfs"], "cgroup-parent": "/actions_job", "data-root": "/mnt/docker" }' | sudo tee /etc/docker/daemon.json
sudo service docker start
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 5e4a2c4

Please sign in to comment.