-
Notifications
You must be signed in to change notification settings - Fork 58
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
FR: Be able to build any docker image using ImageBuildSpec #2215
Comments
Hey @barnabasbusa , thanks for filing! Could you add clarification around the following:
Do you mean specifically services inside the ethereum-package? |
I mean all services could use just imagebuildspec by default. So instead of having
Give a bit more power for ImageBuildSpec and combine the features of all the other different spec into one, and make decisions based on what image_name is being passed. I would much prefer if you merged all these different specs into one overarching doEverythingBuildSpec, which could use an image from dockerhub, could use an image from private repo, could build an image, or could build a nix image, all based on what you args you pass it. |
just cutting scope here - I can add a |
+1 for this feature. Needed to build optimism docker images, since their main docker file is under a sub folder. PR waiting for this fix: ethpandaops/optimism-package#69 |
Hey @samlaf ! Just took a look at the PR and revisiting this, to clarify, is the Dockerfile within the kurtosis package or outside the Kurtosis package? If it's the Kurtosis package (or can be put inside the Kurtosis package) this is a much lighter fix. |
@tedim52 do submodules count as being part of the kurtosis package? If so then yes, the docker file is at optimism/something/something/Dockerfile wrt kurtosis root, where optimism is the optimism repo as a submodule. |
Background & motivation
ImageBuildSpec is a great addition to kurtosis but currently its a bit limited.
It would be great if the buildspec would be able to support arbitrary urls and local paths. All services could then default to ImageBuildSpec instead of the current way of either local image or build an image. As this causes some issues for those that want to use the image building feature, without wanting to modify any starlark code.
Desired behaviour
If I don't specify path, it should use locally discovered image.
e.g:
If you specify a local path, it should always build a new image based on the local repo
e.g:
If you specify a remote url, it should use that Dockerfile to build a new docker image:
e.g:
How important is this to you?
Nice to have; this feature would make using Kurtosis more enjoyable.
What area of the product does this pertain to?
CLI: the Command Line Interface
The text was updated successfully, but these errors were encountered: