Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run a cronJob every 30m to cleanup docker buildkit cache #3226

Merged
merged 8 commits into from
Feb 17, 2025

Conversation

yuvipanda
Copy link
Contributor

docker/buildx#1065 (comment) is the best documentation on this command, and it should fully be able to replace what our imageCleaner currently does. And it's necessary, as I think imageCleaner doesn't actually clean up buildkit cache anymore.

This should be upstreamed into the helm chart, and imageCleaner deprecated / removed. However, I want to merge https://github.com/2i2c-org/binderhub-service/ into binderhub and turn that into the chart first, so we don't have to keep repeating work there. So in the meantime, this cronjob is here so we don't have mybinder.org outages (as happened in https://jupyter.zulipchat.com/#narrow/channel/469744-jupyterhub/topic/mybinder.2Eorg.20outage)

docker/buildx#1065 (comment)
is the best documentation on this command, and it should fully
be able to replace what our imageCleaner currently does. And it's
necessary, as I think imageCleaner doesn't actually clean up buildkit
cache anymore.

This should be upstreamed into the helm chart, and imageCleaner
deprecated / removed. However, I want to merge https://github.com/2i2c-org/binderhub-service/
into binderhub and turn that into the chart first, so we don't
have to keep repeating work there. So in the meantime, this
cronjob is here so we don't have mybinder.org outages (as happened
in https://jupyter.zulipchat.com/#narrow/channel/469744-jupyterhub/topic/mybinder.2Eorg.20outage)
@yuvipanda
Copy link
Contributor Author

testing on the bare instance to see if that works

@yuvipanda
Copy link
Contributor Author

We still need the imageCleaner, until jupyterhub/repo2docker#1414 lands. Then it can be disabled.

@yuvipanda yuvipanda merged commit 32f5667 into jupyterhub:main Feb 17, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant