-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Milestone
Description
(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.
variables:
myimage: myimagename
components:
- name: mydockerfileimage
image:
imageName: {{myimage}}
dockerfile:
buildContext: ${PROJECTS_ROOT}/build
uri: Dockerfile
args: [ "arg1", "arg2", "arg3" ]
rootRequired: false
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:
components:
- name: outerloop-deploy
kubernetes:
uri: deployment-manifest.yaml
commands:
- id: deployk8s
apply:
component: outerloop-deploy
group:
kind: deploy
isDefault: true
The build tool mechanism like kaniko
or buildah
will be up to the tools and hence will not be a part of the spec.
Metadata
Metadata
Assignees
Labels
No labels