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
03dd7d52
Unverified
Commit
03dd7d52
authored
Apr 28, 2024
by
Simon Mo
Committed by
GitHub
Apr 28, 2024
Browse files
[CI] clean docker cache for neuron (#4441)
parent
bf480c53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
.buildkite/run-neuron-test.sh
.buildkite/run-neuron-test.sh
+14
-0
No files found.
.buildkite/run-neuron-test.sh
View file @
03dd7d52
...
@@ -4,6 +4,20 @@ set -e
...
@@ -4,6 +4,20 @@ set -e
# Try building the docker image
# Try building the docker image
aws ecr get-login-password
--region
us-west-2 | docker login
--username
AWS
--password-stdin
763104351884.dkr.ecr.us-west-2.amazonaws.com
aws ecr get-login-password
--region
us-west-2 | docker login
--username
AWS
--password-stdin
763104351884.dkr.ecr.us-west-2.amazonaws.com
# prune old image and containers to save disk space, and only once a day
# by using a timestamp file in tmp.
if
[
-f
/tmp/neuron-docker-build-timestamp
]
;
then
last_build
=
$(
cat
/tmp/neuron-docker-build-timestamp
)
current_time
=
$(
date
+%s
)
if
[
$((
current_time
-
last_build
))
-gt
86400
]
;
then
docker system prune
-f
echo
$current_time
>
/tmp/neuron-docker-build-timestamp
fi
else
echo
$(
date
+%s
)
>
/tmp/neuron-docker-build-timestamp
fi
docker build
-t
neuron
-f
Dockerfile.neuron
.
docker build
-t
neuron
-f
Dockerfile.neuron
.
# Setup cleanup
# Setup cleanup
...
...
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