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

Only mount ~/.docker/config.json, not ~/.docker #1929

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

yuvipanda
Copy link
Collaborator

docker buildx wants to write to ~/.docker/buildx, but since we mount the secret entirely (to ~/.docker/buildx), it can not. I think mounting just the subpath should work.

Follow-up to jupyterhub/repo2docker#1402

docker buildx wants to write to ~/.docker/buildx, but since
we mount the secret *entirely* (to ~/.docker/buildx), it can not.
I think mounting *just* the subpath should work.

Follow-up to jupyterhub/repo2docker#1402
@yuvipanda yuvipanda merged commit e9a8f06 into jupyterhub:main Feb 13, 2025
14 checks passed
@consideRatio
Copy link
Member

There is a slight behavior change that i don't think is a problem, but I'm not 100% confident on it - it could even be that this is a fix to an edge case.

With subPath is used, it wont refresh the mounted config file over time if the source Secret/ConfigMap changes, but that seems fine as long as the pod isn't staying around for multiple builds etc - which it won't, right?

yuvipanda added a commit to yuvipanda/mybinder.org-deploy that referenced this pull request Feb 14, 2025
Brings in:

repo2docker (among others):
- jupyterhub/repo2docker#1402
- jupyterhub/repo2docker#1413

binderhub:
- jupyterhub/binderhub#1929
- jupyterhub/binderhub#1930

Note that this *could* cause some issues for the very few repos
that depend on internal details of the non buildx old builder.
For example, see scikit-learn/scikit-learn#30835
yuvipanda added a commit to yuvipanda/mybinder.org-deploy that referenced this pull request Feb 14, 2025
Brings in:

repo2docker (among others):
- jupyterhub/repo2docker#1402
- jupyterhub/repo2docker#1413

binderhub:
- jupyterhub/binderhub#1929
- jupyterhub/binderhub#1930

Note that this *could* cause some issues for the very few repos
that depend on internal details of the non buildx old builder.
For example, see scikit-learn/scikit-learn#30835

We also remove memory limits, as those are not supported right now
via the docker buildx build. We will need to add support for custom
buildkit builders in binderhub, and then we can use those.
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.

3 participants