-
Notifications
You must be signed in to change notification settings - Fork 362
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
Support setting appendix on Dockerfiles too #1144
Conversation
https://github.com/jupyterhub/binderhub/blob/e04a8c3cec71ae8a1bf984da8623ecf8d81398bb/binderhub/binderspawner_mixin.py#L102 is how BINDER_REPO_URL is set. Instead, I just want to set REPO_URL in repo2docker itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding made explicit:
repo2docker
can be run with an--appendix
flag, but when a Dockerfile was created, it wasn't honored.REPO_URL
is the proposed name of a new environment variable to solve a problem.
It is my understand that a discussion about an env called REPO_URL
would be a new environment variable. If that is correct, I'd very much like that REPO_URL
instead is named REPO2DOCKER_REPO_URL
or similar. Environment variables with a prefix related to the source code that defines them is a major help to avoid confusion, not only the the project that defines them but in other projects where the confusion otherwise propagates. I'm thinking for example on the amount of questions jupyterhub/z2jh/binderhub could get about REPO_URL that really was about repo2docker if we would leave out a REPO2DOCKER prefix.
@consideRatio ah sure re: naming of the env var. I'll open a separate PR to deal with that, this PR doesn't touch that. |
Until now, 'appendix' was ignored for repos built with their own Dockerfile. This fixes that, and sets the appendix on repos built with Dockerfiles too. I want to set a REPO_URL env var for all images built with repo2docker-action (jupyterhub/repo2docker-action#86) and this is needed for that.
936a0e9
to
97d8e7a
Compare
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM!
I labelled this as a bug because it wasn't documented that |
Note this was discussed in a previous PR #1097 (comment) |
I still like the logic/argument that manics linked to. This means "no appendix for customer |
Ah hmmm... I haven't formed a clear opinion if it is a feature or a bug, but right now it is an undocumented exception as I understand it - which i consider a documentation bug at least. For now I'll leave a blank vote with regards to making it supported or explicitly fail/emit warning, and a strong vote for any of those options is better than undocumented and silently ignored situation we currently have. Ping me for further input, I feel I'd need to onboard myself a bit further to be able to think clearly what I consider to make sense about supporting it or not. |
I've made an alternative proposal in jupyterhub/repo2docker-action#86 (comment) |
@manics I like that :) |
Going to close this as this was considered and rejected. I do agree with @consideRatio this should be documented though. |
Until now, 'appendix' was ignored for repos built with
their own Dockerfile. This fixes that, and sets the appendix
on repos built with Dockerfiles too.
I want to set a REPO_URL env var for all images built with
repo2docker-action
(jupyterhub/repo2docker-action#86)
and this is needed for that.