Skip to content

Support easier access to files from the stack #55

Closed as not planned
Closed as not planned
@neeraj-laad

Description

@neeraj-laad

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

No one assigned

    Labels

    area/apiEnhancement or issue related to the api/devfile specificationarea/registryDevfile registry for stacks and infrastructurefutureItems in consideration to be added to future spec levelslifecycle/rottenRotten items. These items have been stale for 60 days and are now closed.lifecycle/staleStale items. These items have not been updated for 90 days.severity/P1Issues that have a critical impact

    Type

    No type

    Projects

    Status

    Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions