Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
016e3676
Unverified
Commit
016e3676
authored
Jan 21, 2025
by
Liangfu Chen
Committed by
GitHub
Jan 22, 2025
Browse files
[CI] add docker volume prune to neuron CI (#12291)
Signed-off-by:
Liangfu Chen
<
liangfc@amazon.com
>
parent
64ea24d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
.buildkite/run-neuron-test.sh
.buildkite/run-neuron-test.sh
+4
-1
No files found.
.buildkite/run-neuron-test.sh
View file @
016e3676
...
@@ -25,8 +25,11 @@ if [ -f /tmp/neuron-docker-build-timestamp ]; then
...
@@ -25,8 +25,11 @@ if [ -f /tmp/neuron-docker-build-timestamp ]; then
last_build
=
$(
cat
/tmp/neuron-docker-build-timestamp
)
last_build
=
$(
cat
/tmp/neuron-docker-build-timestamp
)
current_time
=
$(
date
+%s
)
current_time
=
$(
date
+%s
)
if
[
$((
current_time
-
last_build
))
-gt
86400
]
;
then
if
[
$((
current_time
-
last_build
))
-gt
86400
]
;
then
# Remove dangling images (those that are not tagged and not used by any container)
docker image prune
-f
docker image prune
-f
docker system prune
-f
# Remove unused volumes / force the system prune for old images as well.
docker volume prune
-f
&&
docker system prune
-f
# Remove huggingface model artifacts and compiler cache
rm
-rf
"
${
HF_MOUNT
:?
}
/*"
rm
-rf
"
${
HF_MOUNT
:?
}
/*"
rm
-rf
"
${
NEURON_COMPILE_CACHE_MOUNT
:?
}
/*"
rm
-rf
"
${
NEURON_COMPILE_CACHE_MOUNT
:?
}
/*"
echo
"
$current_time
"
>
/tmp/neuron-docker-build-timestamp
echo
"
$current_time
"
>
/tmp/neuron-docker-build-timestamp
...
...
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