-
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
Add docker options to repo2docker #1112
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
This should already be possible. You can pass arbitrary key-word arguments via the repo2docker/repo2docker/app.py Lines 108 to 117 in 4352535
These will be passed to the Docker API client which accepts a |
Would this mean you've to pass in something like |
Something like that.... I'm still searching for a good traitlets tutorial on command line args 😀 |
I can confirm that that does NOT work... I'll keep playing around though.
…On Mon, Jan 10, 2022 at 12:17 PM Simon Li ***@***.***> wrote:
Something like that.... I'm still searching for a good traitlets tutorial
on command line args 😀
—
Reply to this email directly, view it on GitHub
<#1112 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJTP6FULMBTO7UTVFR3GNJTUVM5GNANCNFSM5LT7KQ4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Peter Sudmant
Assistant Professor (he/him/his)
Department of Integrative Biology
University of California, Berkeley
510-664-4700
|
I feel like this should work:
but it results in Any ideas? |
@manics should I reopen this as an "issue" as there doesn't seem to be any documentation of how to get this working in repo2docker? |
@petersudmant Did you try @yuvipanda's suggestion? If that didn't work would you mind posting on https://discourse.jupyter.org/ instead, and make it clear you need some help with using Traitlets on the command line? I don't think re-opening the issue here will help if we don't have the knowledge of Traitlets, whereas someone is more likely to know the answer on Discourse. |
@manics Makes good sense. I did try @yuvipanda's suggestion w/ no luck. I'll do that right now |
@petersudmant I've just had another idea, can you try passing a config file |
Just to emphasize my lack of traitlets experience, I suspect the config may not be in place to forward the CLI args.... I thought it was automatically done when using Traitlets but maybe not? E.g. |
Actually, this worked!
where traitlets.config.json looks like this
|
@petersudmant Great! Sorry for misleading you with my earlier comment. What are your thoughts on this configuration- is a config file good enough, or do you think it (and all other configurables) should be exposed on the command line? |
@manics generally with traitlets I expect them to be loaded from the commandline, we should try to do that |
I agree w/ @yuvipanda @manics - traitlets docs suggests either option should be possible |
Without this, you *always* needed a repo2docker_config.py file to configure anything. This PR makes r2d match the behavior of most traitlets based applications (like jupyter_server, jupyterhub, nbconvert, etc) Fixes jupyterhub#1112
Proposed change
Add a way to add docker options to repo2docker.
Alternative options
There are no alternate options AFIK
Who would use this feature?
The issue I am facing is a building a x86 repo2docker on an m1 mac. I think this can be done by using docker options
--platform linux/amd64
however I cannot do this currentlyHow much effort will adding it take?
I think this shoudl be quite straightforward.
Who can do this work?
The text was updated successfully, but these errors were encountered: