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

Add BuildExecutor.repo2docker_extra_args config #1766

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

yuvipanda
Copy link
Collaborator

Very helpful for a specific binderhub instance to customize how images are built. Off the top of my head, two useful things would be to pass --repo-dir (so you can have this work with a persistent home directory but still get access to the files in the image), and --base-image (so an install can use a different base image than rep2docker default).

As it's a simple passthrough, I've added a unit test only (no integration test).

Fixes #1765

Very helpful for a specific binderhub instance to customize
how images are built. Off the top of my head, two useful things
would be to pass `--repo-dir` (so you can have this work with
a persistent home directory but still get access to the files in
the image), and `--base-image` (so an install can use a different
base image than rep2docker default).

As it's a simple passthrough, I've added a unit test only (no
integration test).

Fixes jupyterhub#1765
@yuvipanda
Copy link
Collaborator Author

Failures are unrelated I think

Copy link
Member

@manics manics left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My original thinking behind the get_r2d_cmd_options() function was that you could easily override it by subclassing BuildExecutor.

Adding a new parameter seems fine though, especially if this means we can say we won't add traitlets to pass other repo2docker arguments, and instead refer people to this new property instead.

@consideRatio
Copy link
Member

Lgtm!

I tweaked the title to "Add repo2docker_extra_args config" as it by itself clarifies the mechanism to allow passing args and that then enables the changelog to provide a better overview. I also added the "new" label for this PR!

@consideRatio consideRatio changed the title Allow passing extra arguments to repo2docker Add repo2docker_extra_args config Oct 8, 2023
@consideRatio consideRatio changed the title Add repo2docker_extra_args config Add BuildExecutor.repo2docker_extra_args config Oct 8, 2023
@consideRatio consideRatio merged commit 1b71389 into jupyterhub:main Oct 9, 2023
11 of 13 checks passed
consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow passing additional args to repo2docker
3 participants