Description
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:
- Dockerfile for converting app into a container image
- shell scripts for supporting commands for iterative development
- source code providing some value add for enriching the application.
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:
- files from component's Devfile
- files from parent Devfile
The current options are:
- create a custom container image with added files
- add a step to do git clone as part of initializing the container
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 one mountStack:true
(or a similar name) to trigger this.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status