Skip to content

Commit 9a5e1f9

Browse files
committed
update all stacks to use $PROJECT_SOURCE
Signed-off-by: Tomas Kral <[email protected]>
1 parent 2cb3c67 commit 9a5e1f9

File tree

22 files changed

+76
-72
lines changed

22 files changed

+76
-72
lines changed

stacks/dotnet50/devfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ components:
4242
commands:
4343
- id: build
4444
exec:
45-
workingDir: ${PROJECTS_ROOT}
45+
workingDir: ${PROJECT_SOURCE}
4646
commandLine: kill $(pidof dotnet); dotnet build -c $CONFIGURATION $STARTUP_PROJECT /p:UseSharedCompilation=false
4747
component: dotnet
4848
group:
@@ -51,7 +51,7 @@ commands:
5151

5252
- id: run
5353
exec:
54-
workingDir: ${PROJECTS_ROOT}
54+
workingDir: ${PROJECT_SOURCE}
5555
commandLine: dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT --no-launch-profile
5656
component: dotnet
5757
group:

stacks/dotnet60/devfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ components:
4242
commands:
4343
- id: build
4444
exec:
45-
workingDir: ${PROJECTS_ROOT}
45+
workingDir: ${PROJECT_SOURCE}
4646
commandLine: kill $(pidof dotnet); dotnet build -c $CONFIGURATION $STARTUP_PROJECT /p:UseSharedCompilation=false
4747
component: dotnet
4848
group:
@@ -51,7 +51,7 @@ commands:
5151

5252
- id: run
5353
exec:
54-
workingDir: ${PROJECTS_ROOT}
54+
workingDir: ${PROJECT_SOURCE}
5555
commandLine: dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT --no-launch-profile
5656
component: dotnet
5757
group:

stacks/dotnetcore31/devfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ components:
4141
commands:
4242
- id: build
4343
exec:
44-
workingDir: ${PROJECTS_ROOT}
44+
workingDir: ${PROJECT_SOURCE}
4545
commandLine: kill $(pidof dotnet); dotnet build -c $CONFIGURATION $STARTUP_PROJECT /p:UseSharedCompilation=false
4646
component: dotnet
4747
group:
@@ -50,7 +50,7 @@ commands:
5050

5151
- id: run
5252
exec:
53-
workingDir: ${PROJECTS_ROOT}
53+
workingDir: ${PROJECT_SOURCE}
5454
commandLine: dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT --no-launch-profile
5555
component: dotnet
5656
group:

stacks/go/devfile.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,21 @@ components:
2424
image: golang:latest
2525
memoryLimit: 1024Mi
2626
mountSources: true
27-
sourceMapping: /project
2827
name: runtime
2928
commands:
3029
- exec:
31-
commandLine: GOCACHE=/project/.cache go build main.go
30+
commandLine: GOCACHE=${PROJECT_SOURCE}/.cache go build main.go
3231
component: runtime
3332
group:
3433
isDefault: true
3534
kind: build
36-
workingDir: /project
35+
workingDir: ${PROJECT_SOURCE}
3736
id: build
3837
- exec:
3938
commandLine: ./main
4039
component: runtime
4140
group:
4241
isDefault: true
4342
kind: run
44-
workingDir: /project
43+
workingDir: ${PROJECT_SOURCE}
4544
id: run

stacks/java-maven/devfile.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,23 @@ commands:
3131
- id: mvn-package
3232
exec:
3333
component: tools
34+
workingDir: ${PROJECT_SOURCE}
3435
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository package'
3536
group:
3637
kind: build
3738
isDefault: true
3839
- id: run
3940
exec:
4041
component: tools
42+
workingDir: ${PROJECT_SOURCE}
4143
commandLine: 'java -jar target/*.jar'
4244
group:
4345
kind: run
4446
isDefault: true
4547
- id: debug
4648
exec:
4749
component: tools
50+
workingDir: ${PROJECT_SOURCE}
4851
commandLine: 'java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar'
4952
group:
5053
kind: debug

stacks/java-openliberty-gradle/devfile.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ commands:
5353
exec:
5454
component: dev
5555
commandLine: echo "gradle run command"; {{gradle-cmd}} -Dgradle.user.home=/.gradle libertyDev -Pliberty.runtime.version={{liberty-version}} -Pliberty.runtime.name=openliberty-runtime -Pliberty.runtime.group=io.openliberty --libertyDebug=false --hotTests --compileWait=3
56-
workingDir: /projects
56+
workingDir: ${PROJECT_SOURCE}
5757
hotReloadCapable: true
5858
group:
5959
kind: run
@@ -62,7 +62,7 @@ commands:
6262
exec:
6363
component: dev
6464
commandLine: echo "gradle run-tests-off command "; {{gradle-cmd}} -Dgradle.user.home=/.gradle libertyDev -Pliberty.runtime.version={{liberty-version}} -Pliberty.runtime.name=openliberty-runtime -Pliberty.runtime.group=io.openliberty --libertyDebug=false
65-
workingDir: /projects
65+
workingDir: ${PROJECT_SOURCE}
6666
hotReloadCapable: true
6767
group:
6868
kind: run
@@ -71,7 +71,7 @@ commands:
7171
exec:
7272
component: dev
7373
commandLine: echo "gradle debug command "; {{gradle-cmd}} -Dgradle.user.home=/.gradle libertyDev -Pliberty.runtime.version={{liberty-version}} -Pliberty.runtime.name=openliberty-runtime -Pliberty.runtime.group=io.openliberty --libertyDebugPort=${DEBUG_PORT} -Pliberty.server.env.WLP_DEBUG_REMOTE=y
74-
workingDir: /projects
74+
workingDir: ${PROJECT_SOURCE}
7575
hotReloadCapable: true
7676
group:
7777
kind: debug
@@ -80,7 +80,7 @@ commands:
8080
exec:
8181
component: dev
8282
commandLine: echo "gradle test command "; {{gradle-cmd}} -Dgradle.user.home=/.gradle test -Pliberty.runtime.version={{liberty-version}} -Pliberty.runtime.name=openliberty-runtime -Pliberty.runtime.group=io.openliberty
83-
workingDir: /projects
83+
workingDir: ${PROJECT_SOURCE}
8484
hotReloadCapable: true
8585
group:
8686
kind: test

stacks/java-openliberty/devfile.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ commands:
5555
exec:
5656
component: dev
5757
commandLine: echo "run command "; {{mvn-cmd}} -DinstallDirectory=/opt/ol/wlp -Ddebug=false -DhotTests=true -DcompileWait=3 io.openliberty.tools:liberty-maven-plugin:{{liberty-plugin-version}}:dev
58-
workingDir: /projects
58+
workingDir: ${PROJECT_SOURCE}
5959
hotReloadCapable: true
6060
group:
6161
kind: run
@@ -64,7 +64,7 @@ commands:
6464
exec:
6565
component: dev
6666
commandLine: echo "run-test-off command "; {{mvn-cmd}} -DinstallDirectory=/opt/ol/wlp -Ddebug=false io.openliberty.tools:liberty-maven-plugin:{{liberty-plugin-version}}:dev
67-
workingDir: /projects
67+
workingDir: ${PROJECT_SOURCE}
6868
hotReloadCapable: true
6969
group:
7070
kind: run
@@ -73,7 +73,7 @@ commands:
7373
exec:
7474
component: dev
7575
commandLine: echo "debug command "; {{mvn-cmd}} -DinstallDirectory=/opt/ol/wlp -DdebugPort=${DEBUG_PORT} io.openliberty.tools:liberty-maven-plugin:{{liberty-plugin-version}}:dev -Dliberty.env.WLP_DEBUG_REMOTE=y
76-
workingDir: /projects
76+
workingDir: ${PROJECT_SOURCE}
7777
hotReloadCapable: true
7878
group:
7979
kind: debug
@@ -83,7 +83,7 @@ commands:
8383
exec:
8484
component: dev
8585
commandLine: echo "test command "; {{mvn-cmd}} compiler:compile failsafe:integration-test failsafe:verify
86-
workingDir: /projects
86+
workingDir: ${PROJECT_SOURCE}
8787
hotReloadCapable: true
8888
group:
8989
kind: test

stacks/java-quarkus/devfile.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ commands:
3636
exec:
3737
component: tools
3838
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository compile'
39-
workingDir: $PROJECTS_ROOT
39+
workingDir: ${PROJECT_SOURCE}
4040
- id: dev-run
4141
exec:
4242
component: tools
@@ -45,7 +45,7 @@ commands:
4545
group:
4646
kind: run
4747
isDefault: true
48-
workingDir: $PROJECTS_ROOT
48+
workingDir: ${PROJECT_SOURCE}
4949
- id: dev-debug
5050
exec:
5151
component: tools
@@ -54,7 +54,7 @@ commands:
5454
group:
5555
kind: debug
5656
isDefault: true
57-
workingDir: $PROJECTS_ROOT
57+
workingDir: ${PROJECT_SOURCE}
5858
events:
5959
postStart:
6060
- init-compile

stacks/java-springboot/devfile.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,23 @@ commands:
3333
- id: build
3434
exec:
3535
component: tools
36+
workingDir: ${PROJECT_SOURCE}
3637
commandLine: 'mvn clean -Dmaven.repo.local=/home/user/.m2/repository package -Dmaven.test.skip=true'
3738
group:
3839
kind: build
3940
isDefault: true
4041
- id: run
4142
exec:
4243
component: tools
44+
workingDir: ${PROJECT_SOURCE}
4345
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository spring-boot:run'
4446
group:
4547
kind: run
4648
isDefault: true
4749
- id: debug
4850
exec:
4951
component: tools
52+
workingDir: ${PROJECT_SOURCE}
5053
commandLine: 'java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar'
5154
group:
5255
kind: debug

stacks/java-vertx/devfile.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,23 @@ commands:
108108
exec:
109109
commandLine: mvn package -Dmaven.test.skip=true
110110
component: runtime
111+
workingDir: ${PROJECT_SOURCE}
111112
group:
112113
isDefault: true
113114
kind: build
114115
- id: run
115116
exec:
116117
commandLine: mvn io.reactiverse:vertx-maven-plugin:run
117118
component: runtime
119+
workingDir: ${PROJECT_SOURCE}
118120
group:
119121
isDefault: true
120122
kind: run
121123
- id: debug
122124
exec:
123125
commandLine: mvn io.reactiverse:vertx-maven-plugin:debug -Ddebug.port=${DEBUG_PORT}
124126
component: runtime
127+
workingDir: ${PROJECT_SOURCE}
125128
group:
126129
isDefault: true
127130
kind: debug

stacks/java-wildfly-bootable-jar/devfile.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,39 +131,39 @@ commands:
131131
exec:
132132
component: wildfly
133133
commandLine: mvn ${MVN_ARGS_APPEND} clean package
134-
workingDir: $PROJECTS_ROOT
134+
workingDir: ${PROJECT_SOURCE}
135135
group:
136136
kind: build
137137
isDefault: false
138138
- id: run
139139
exec:
140140
component: wildfly
141141
commandLine: mvn ${MVN_ARGS_APPEND} org.wildfly.plugins:wildfly-jar-maven-plugin:run
142-
workingDir: $PROJECTS_ROOT
142+
workingDir: ${PROJECT_SOURCE}
143143
group:
144144
kind: run
145145
isDefault: false
146146
- id: debug
147147
exec:
148148
component: wildfly
149149
commandLine: mvn ${MVN_ARGS_APPEND} -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:${DEBUG_PORT},server=y,suspend=n" org.wildfly.plugins:wildfly-jar-maven-plugin:run
150-
workingDir: $PROJECTS_ROOT
150+
workingDir: ${PROJECT_SOURCE}
151151
group:
152152
kind: debug
153153
isDefault: false
154154
- id: dev-build
155155
exec:
156156
component: wildfly
157157
commandLine: mvn ${MVN_ARGS_APPEND} -Dmaven.test.skip=true -Ddev package
158-
workingDir: $PROJECTS_ROOT
158+
workingDir: ${PROJECT_SOURCE}
159159
group:
160160
kind: build
161161
isDefault: false
162162
- id: dev-run
163163
exec:
164164
component: wildfly
165165
commandLine: mvn ${MVN_ARGS_APPEND} org.wildfly.plugins:wildfly-jar-maven-plugin:dev
166-
workingDir: $PROJECTS_ROOT
166+
workingDir: ${PROJECT_SOURCE}
167167
hotReloadCapable: true
168168
group:
169169
kind: run
@@ -172,7 +172,7 @@ commands:
172172
exec:
173173
component: wildfly
174174
commandLine: mvn ${MVN_ARGS_APPEND} -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:${DEBUG_PORT},server=y,suspend=n" org.wildfly.plugins:wildfly-jar-maven-plugin:dev
175-
workingDir: $PROJECTS_ROOT
175+
workingDir: ${PROJECT_SOURCE}
176176
hotReloadCapable: true
177177
group:
178178
kind: debug
@@ -181,15 +181,15 @@ commands:
181181
exec:
182182
component: wildfly
183183
commandLine: echo 'It's watcher mode so we are doing nothing to build.''
184-
workingDir: $PROJECTS_ROOT
184+
workingDir: ${PROJECT_SOURCE}
185185
group:
186186
kind: build
187187
isDefault: true
188188
- id: watch-run
189189
exec:
190190
component: wildfly
191191
commandLine: mvn ${MVN_ARGS_APPEND} org.wildfly.plugins:wildfly-jar-maven-plugin:dev-watch -e -DskipTests
192-
workingDir: $PROJECTS_ROOT
192+
workingDir: ${PROJECT_SOURCE}
193193
hotReloadCapable: true
194194
group:
195195
kind: run
@@ -198,7 +198,7 @@ commands:
198198
exec:
199199
component: wildfly
200200
commandLine: mvn ${MVN_ARGS_APPEND} -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:${DEBUG_PORT},server=y,suspend=n" org.wildfly.plugins:wildfly-jar-maven-plugin:dev-watch -e
201-
workingDir: $PROJECTS_ROOT
201+
workingDir: ${PROJECT_SOURCE}
202202
hotReloadCapable: true
203203
group:
204204
kind: debug

0 commit comments

Comments
 (0)