From 716a5cb9e6b3a4eee87b85bfdb951a795c8172d7 Mon Sep 17 00:00:00 2001 From: Kamran Shamsi <45264227+Kamran64@users.noreply.github.com> Date: Fri, 5 Jun 2020 15:10:04 +0100 Subject: [PATCH] Quarkus: Add launch.json to templates and add APPSODY_DEBUG_PORT env vars (#824) Co-authored-by: Sandy Koh --- incubator/quarkus/README.md | 4 ---- incubator/quarkus/image/Dockerfile-stack | 1 + incubator/quarkus/image/project/pom.xml | 2 +- incubator/quarkus/stack.yaml | 2 +- .../quarkus/templates/default/.vscode/launch.json | 12 ++++++++++++ .../quarkus/templates/kafka/.vscode/launch.json | 12 ++++++++++++ 6 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 incubator/quarkus/templates/default/.vscode/launch.json create mode 100644 incubator/quarkus/templates/kafka/.vscode/launch.json diff --git a/incubator/quarkus/README.md b/incubator/quarkus/README.md index 2b076e664..f2835da07 100644 --- a/incubator/quarkus/README.md +++ b/incubator/quarkus/README.md @@ -73,10 +73,6 @@ Running the production container should give you an output similar to: You can verify that this worked by visiting http://0.0.0.0:8080/ and observing the welcome page. You can also visit http://0.0.0.0:8080/hello/greeting/paul to try the REST API. -## Known Issue: - -- Currently there is no configuration or documentation on `appsody debug`. - ## License This stack is licensed under the [Apache 2.0](./image/LICENSE) license diff --git a/incubator/quarkus/image/Dockerfile-stack b/incubator/quarkus/image/Dockerfile-stack index d1ba0c936..a3545c273 100644 --- a/incubator/quarkus/image/Dockerfile-stack +++ b/incubator/quarkus/image/Dockerfile-stack @@ -30,6 +30,7 @@ ENV APPSODY_TEST_KILL=true WORKDIR /project/user-app ENV PORT=8080 +ENV APPSODY_DEBUG_PORT=5005 EXPOSE 8080 EXPOSE 5005 diff --git a/incubator/quarkus/image/project/pom.xml b/incubator/quarkus/image/project/pom.xml index c72c7b935..4e0f2a952 100644 --- a/incubator/quarkus/image/project/pom.xml +++ b/incubator/quarkus/image/project/pom.xml @@ -4,7 +4,7 @@ dev.appsody quarkus - 0.3.6 + 0.3.7 pom diff --git a/incubator/quarkus/stack.yaml b/incubator/quarkus/stack.yaml index d35fed283..58dc5b27d 100644 --- a/incubator/quarkus/stack.yaml +++ b/incubator/quarkus/stack.yaml @@ -1,5 +1,5 @@ name: Quarkus -version: 0.3.6 +version: 0.3.7 description: Quarkus runtime for running Java applications license: Apache-2.0 language: java diff --git a/incubator/quarkus/templates/default/.vscode/launch.json b/incubator/quarkus/templates/default/.vscode/launch.json new file mode 100644 index 000000000..bd74b21c5 --- /dev/null +++ b/incubator/quarkus/templates/default/.vscode/launch.json @@ -0,0 +1,12 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Appsody: Attach java debugger", + "type": "java", + "request": "attach", + "hostName": "localhost", + "port": 5005 + } + ] +} \ No newline at end of file diff --git a/incubator/quarkus/templates/kafka/.vscode/launch.json b/incubator/quarkus/templates/kafka/.vscode/launch.json new file mode 100644 index 000000000..bd74b21c5 --- /dev/null +++ b/incubator/quarkus/templates/kafka/.vscode/launch.json @@ -0,0 +1,12 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Appsody: Attach java debugger", + "type": "java", + "request": "attach", + "hostName": "localhost", + "port": 5005 + } + ] +} \ No newline at end of file