Skip to content

Reserved folder for storing stack specific resource files #457

@elsony

Description

@elsony

Background: #421

If a stack contains supporting resources that are required for the function of the stack, e.g. Dockerfiles in the future, the stack can store those supporting files as part of the devfile registry. However, there is currently no reserved location for storing those files. This means that when tools like odo when doing a component create, it may potentially overwrite user application files on a component create.

For example, if a stack contains a file docker/Dockerfiles under the stack folder in a registry, during odo create, it will clone the stack folder. If the user application already contains the same file, this clone may overwrite the user file. In order to avoid file collision between user application and files provided by the stack, we can resolve it by reserving a folder, e.g. .devfile or .stack, that allows a stack to store the stack supporting files.

The registry will look something like this:

stacks
     |- nodejs
     |       |- .devfiles
     |       |          |- docker
     |       |                  |- Dockerfile
     |       |
     ...

Note: If we have that, we can also consider putting the devfile.yaml under the .devfile by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/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.

    Type

    No type

    Projects

    Status

    Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions