-
Notifications
You must be signed in to change notification settings - Fork 244
Closed
Labels
estimated-size/S (5-10)Rough sizing for Epics. Less then one sprint of work for one personRough sizing for Epics. Less then one sprint of work for one personkind/user-storyAn issue of user-story kindAn issue of user-story kindpriority/HighImportant issue; should be worked on before any other issues (except priority/Critical issue(s)).Important issue; should be worked on before any other issues (except priority/Critical issue(s)).
Description
/kind user-story
User Story
As a Devfile author, I always want to know the exact location of the project source code So that I can execute commands in a current diretory
Acceptance Criteria
-
${PROJECT_SOURCE}env variable should be available in every container of the component so it can be used incommandLineorworkingDirfields inside Devfiles -
${PROJECT_SOURCE}should point to a directory that contains project source code- if there are multiple projects in devfile
${PROJECT_SOURCE}will point to the source code of the first one - if there are no projects in devfile
${PROJECT_SOURCE}will be equal to the value of${PROJECTS_ROOT}
- if there are multiple projects in devfile
Notes
${PROJECT_SOURCE}can be different for each container because it depends onsourceMappingvalue and on${PROJECTS_ROOT}value both are set per container.- Projects source code location inside
${PROJECTS_ROOT}depends onclonePathvalue (defaults to project name) (clonePath should be supported in odo #3729)
Links
- add PROJECTS_ROOT and PROJECT_SOURCE description to CommandLine and WorkingDir devfile/api#116
- Parent Devfiles and workingDir vs clonePath issue devfile/api#109 (comment)
/kind user-story
/priority high
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
estimated-size/S (5-10)Rough sizing for Epics. Less then one sprint of work for one personRough sizing for Epics. Less then one sprint of work for one personkind/user-storyAn issue of user-story kindAn issue of user-story kindpriority/HighImportant issue; should be worked on before any other issues (except priority/Critical issue(s)).Important issue; should be worked on before any other issues (except priority/Critical issue(s)).