Skip to content

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