Skip to content

Commit

Permalink
Allow samples to be run from IntelliJ or bootRun
Browse files Browse the repository at this point in the history
This commit adjust the `spring.docker.compose.file` property value to
allow running the sample via IntelliJ "run" button or from command line
via `./gradlew bootRun`.
  • Loading branch information
onobc committed Jan 14, 2024
1 parent ba05e7e commit 1153a1f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ bootRun {
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/sun.net=ALL-UNNAMED"
]
// when run from command line, path must be set relative to module dir
systemProperty 'spring.docker.compose.file', 'compose.yaml'
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ spring:
message-routing-mode: custompartition
docker:
compose:
# when run from Intellij via "Run" button, path must be set from project root
file: spring-pulsar-sample-apps/sample-failover-custom-router/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ bootRun {
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/sun.net=ALL-UNNAMED"
]
// when run from command line, path must be set relative to module dir
systemProperty 'spring.docker.compose.file', 'compose.yaml'
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ spring:
schema-type: JSON
docker:
compose:
# when run from Intellij via "Run" button, path must be set from project root
file: spring-pulsar-sample-apps/sample-imperative-produce-consume/compose.yaml

0 comments on commit 1153a1f

Please sign in to comment.