-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support easier access to files from the stack #55
Comments
This is related to #46 |
Got it, as a example, if a stack looks like
Then, our tools could make a mount path available
This is aligned with my initial thoughts around how tools would implement |
Updated description in #46 to associate this as a related implementation. |
Yes this is very similar.. but I'm considering where there are .js files in that stack too.
The |
Got it. |
@sbose78 @neeraj-laad If we have a devfile that has a reference to a parent devfile, as per #25, this uses a uri to point to the parent devfile,
If the additional files are within the same location as the parent devfile, then having just a uri to reference the parent devfile doesn't make it easy to obtain all the additional files. We may need a different option to specify how/where to obtain the parent devfile and its associated files, possibly in a similar manner to that used to specify the git repo for projects. For example:
This would allow for the mount path Thoughts? |
One way to address this problem would be using a preStart event defined in the parent devfile. The main question here is how to distribute the files to be copied (Dockerfiles, scripts etc...). And my would be using an OCI registry artifact. That can be an image (FROM scratch) that only contains the files to be copied or a custom OCI artifact (the latter is interesting in the scenario where the devfile registry is an OCI registry). |
Removing from 2.2 specs since this item seems to be an old item that does not need to be part of 2.2 specs. |
This issue is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 60 days. |
An application stack (represented by a devfile) might need to provide additional files to support certain use cases. Some examples that come to mind are:
Today, we can use $PROJECTS_ROOT as the location where the user's application code is made available in my container using
mountSources: true
definition on a component/container.However, there is no way to express this for files that we need are not coming form user's application:
The current options are:
Both these approach can work but cause additional overhead for stack maintainer. I feel almost every stack will need this capability and it will be a big improvement in the experience if we can simplify access to stack code.
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.
We can use the
mountSources: true
flag or create a new onemountStack:true
(or a similar name) to trigger this.The text was updated successfully, but these errors were encountered: