Skip to content

$PROJECT_SOURCE env variable #3781

@kadel

Description

@kadel

/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 in commandLine or workingDir fields 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}

Notes

  • ${PROJECT_SOURCE} can be different for each container because it depends on sourceMapping value and on ${PROJECTS_ROOT} value both are set per container.
  • Projects source code location inside ${PROJECTS_ROOT} depends on clonePath value (defaults to project name) (clonePath should be supported in odo #3729)

Links

/kind user-story
/priority high

Metadata

Metadata

Assignees

Labels

estimated-size/S (5-10)Rough sizing for Epics. Less then one sprint of work for one personkind/user-storyAn issue of user-story kindpriority/HighImportant issue; should be worked on before any other issues (except priority/Critical issue(s)).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions