Skip to content

Commit

Permalink
Disable image cleaner
Browse files Browse the repository at this point in the history
As part of jupyterhub/binderhub#1941,
I want to not port imageCleaner to the new chart. Since the
image store is not really used to push anymore (since
jupyterhub/repo2docker#1421) and we will
be able to disregard it completely in the future, we can simply
just prune the entire image store than do any complex logic here.
  • Loading branch information
yuvipanda committed Mar 8, 2025
1 parent 2ef6b42 commit 4f49cc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mybinder/templates/buildkit-pruner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
- /bin/sh
- -c
- |
docker image prune ---force -all && \
docker builder prune --force --all --keep-storage={{ .Values.buildkitPruner.buildkitCacheSize }} && \
docker system df
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion mybinder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ binderhub:
memory: 4Gi

imageCleaner:
enabled: true
enabled: false
# Use 40GB as upper limit, size is given in bytes
imageGCThresholdHigh: 40e9
imageGCThresholdLow: 10e9
Expand Down

0 comments on commit 4f49cc4

Please sign in to comment.