-
Notifications
You must be signed in to change notification settings - Fork 68
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
Custom base image support in calibanconfig #39
Conversation
@ajslone @sagravat one thought... we COULD allow the user to provide a format string, like
And then we could splice in the job mode at runtime. Is this good? Then it's easier to specify this from the command line.
or
Thoughts? |
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.
LGTM, this will enable many use cases that have been painful or impossible before.
base_image_fn = base_image_id | ||
|
||
base_image = base_image_fn(job_mode) | ||
base_image = c.base_image(caliban_config, job_mode) or base_image_id(job_mode) |
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.
much better using config
LGTM, +1 |
Codecov Report
@@ Coverage Diff @@
## master #39 +/- ##
==========================================
+ Coverage 49.51% 50.51% +1.00%
==========================================
Files 28 28
Lines 2872 2894 +22
==========================================
+ Hits 1422 1462 +40
+ Misses 1450 1432 -18
Continue to review full report at Codecov.
|
This PR gets us started with an approach for custom base images; this is inspired by @sagravat's work in #20, but I had changed so much about the project organization in the meantime that it felt appropriate to whip up this example.
@sagravat, would love your thoughts on how this feels to use!
The user can supply a
"base_image"
entry into.calibanconfig.json
that can either be:Any of the DLVM images will automatically expand. I took slight liberty by forcing the job mode into the name and adding a prefix. So we now have these DLVM options:
Let me know what you think!