-
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
Handling of resources that comes from the parent devfile #46
Comments
I would suggest something like How would I refer to a file that comes with child Devfile. We will also need to reference files that come with child devfile. A have a devfile.yaml in my repo (
In the context of this devfile, What if in this Devfile I want to refer to a file Dockerfile that is in my repo ( |
@kadel In your post above, was this:
supposed to be:
referencing the |
oh, yes. That should be |
I have been thinking of this as well for a slightly different but related use case. A stack may also provide part of the application code as added value. When we are defining commands/containers in a devfile, we can use $PROJECTS_ROOT as the location where the user's application code is made available in my container using However, there is no to express this for files that we need from the stack (parent devfile). Current alternatives are:
Both these approach can work but cause additional overhead for stack maintainer. Moreover, if the build/deploy guidance will be coming from the stack then I feel almost every stack will need this. Why not make it simpler to access these files? It would be good to have all files from the stack (devfile's location or explicitly declared in the devfile) made available as a volume mount in the container at location $STACK_ROOT. If we did not want this done implicitly then we can use a flag like |
I agree we want to make this simple for stack maintainers, but I think it's overloading this issue to cover both. Can we keep this issue focussed on what default variables there should be and how/where you can use them, and open another issue for mounting the stack into the container? |
This issue is related to the way we distribute devfiles. Parents will most likely be stored and distributed using a devfile registry. This is how I can reference a java stack from a devfile:
That is important because I would propose to distribute those files a zip files in a devfile registry (or as an OCI artifact if we use OCI registry as a devfile backend). That artifact (zip file) should be referenced in the devfile as context: context: mycompany/java-stack/11 The context would be pulled and unzipped in Devfiles inherits their parents |
Seems there's some overlap with the more recent: #457 |
Community call discussion 3/28:
|
Handling of resources that comes from the parent devfile. Things to do:
Old description for record:
Could we support the ${STACK_ROOT} variable to be able to express that a specific artifact comes with the stack and not necessarily with the source code/project ?
Example, I would like to specify that a Dockerfile build be done using the
${STACK_ROOT}/Dockerfile
and not the ${PROJECTS_ROOT}/Dockerfile.build .Such artifacts/files would be packaged and served off the devfile directory, example
EDIT:
This is how tools could implement it : #55
Target Date: 09-09-2022
The text was updated successfully, but these errors were encountered: