-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
Currently clonePath defaults to the project name. This means that by default source code is cloned into /project/<project-name>. This is problematic for Stacks (Parent Devfiles) as they can't know where the project source code will be.
Example:
How should I set workingDir in my example devfile.yaml so It is generic enough that it can be used without everyone overriding workingDir for all commands?
# parent.yaml
schemaVersion: 2.0.0
metadata:
name: java
components:
- container:
name: tools
image: quay.io/eclipse/che-java11-maven:nightly
mountSources: true
commands:
- exec:
id: mvn-package
component: tools
commandLine: "mvn package"
# workingDir: ?????
group:
kind: build
isDefault: true
- exec:
id: run
component: tools
commandLine: "java -jar target/*.jar"
# workingDir: ?????
group:
kind: run
isDefault: trueNow I want to use this in my local devfile.yaml
# devfile.yaml
schemaVersion: 2.0.0
metadata:
name: myproject
projects:
- name: myproject
git:
location: https://github.com/example/example
parent:
uri: https://registry.example.com/java/parent.yamlThis won't work because commands in parent devfile don't specify workingDir so it will default to container working directory (in this case /project). But I can't set working dir in parent devfile, because I can't know what will be the project name.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels