Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b9a2262b
Unverified
Commit
b9a2262b
authored
Sep 02, 2024
by
James Lamb
Committed by
GitHub
Sep 02, 2024
Browse files
[ci] fix linux runners running out of disk space (fixed #6635) (#6636)
parent
16c12ef6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
.vsts-ci.yml
.vsts-ci.yml
+29
-0
No files found.
.vsts-ci.yml
View file @
b9a2262b
...
...
@@ -50,6 +50,35 @@ resources:
tasks
:
true
jobs
:
###########################################
-
job
:
Maintenance
###########################################
pool
:
mariner-20240410-0
container
:
ubuntu-latest
# routine maintenance (like periodically deleting old files),
# to be run on 1 random CI runner in the self-hosted pool each runner
steps
:
-
script
:
|
print-diagnostics(){
echo "---- df -h -m ----"
df -h -m
echo "---- docker system df ----"
/tmp/docker system df
echo "---- docker images ----"
/tmp/docker images
}
# check disk usage
print-diagnostics
# remove old containers, container images, volumes
# ref: https://stackoverflow.com/a/32723127/3986677)
echo "---- running 'docker system prune' ----"
/tmp/docker system prune \
--all \
--force \
--filter until=720h
# check disk usage again
print-diagnostics
displayName
:
clean
###########################################
-
job
:
Linux
###########################################
variables
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment