-
Notifications
You must be signed in to change notification settings - Fork 63
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
Introduce outerloop 'dockerfile' build & deploy #51
Comments
Would there be an idea here to add a build image to be used to consume that Dockerfile? I am thinking of a Buildah image or a Kaniko image that would both be used locally and in a pipeline? Would this be something the stack creator should add, or the tool consuming the devfile decide? |
In Che, Devfile components are created before the project gets cloned: we do not have access to If we want to support this use case we need to agree on the workspace creation flow: cloning of the project should happen before everything else. On the other hand I think we should consider publishing Dockerfiles and ohter components definitions in a devfile registry so that we may reference as: components:
- id: build-node-app
dockerfile:
id: mycompany/my-node-stack-dockerfile/v2.2.2
args: [] |
Should we annotate this component to ensure that building this image is not a pre-req to the workspace starting up in Che?
Sounds good.
Could you share a bit more on how you wish the files to be laid out in the registry? |
[ inheritance ]
|
For using the |
When working on the Console Dev Preview for Build Guidance, we found some information that the devfile spec probably may need to address. There is currently an open PR on devfile/api for Build Guidance but we can base our spec on that basis - https://github.com/devfile/api/pull/127/files#diff-ce0147ba3842f44db1642f6506de48a1744cce30f46475c5df580e34e36f0a59R38
|
Adding one more: |
(EDITED - check edit history for prior revisions and discussion of the opening post)
For devfile 2.2.0. Check the proposal at https://github.com/devfile/api/blob/main/docs/proposals/devfile/outer-loop-build-and-deploy.md
A stack may require expressing the outer-loop build guidance ( source code to image ) in the form of a Dockerfile build, s2i build, etc.
The other dockerfile src are available in the proposal doc.
Once the runtime image has been built, we can deploy it via the deploy group command:
The build tool mechanism like
kaniko
orbuildah
will be up to the tools and hence will not be a part of the spec.The text was updated successfully, but these errors were encountered: