From 83159f36ce56caeaa535d243df35373c9e8fe88c Mon Sep 17 00:00:00 2001 From: Nuwan Samarasinghe Date: Tue, 7 Jan 2025 12:54:00 +0000 Subject: [PATCH 1/2] FS-4942: adding launcher script and docket attach # Conflicts: # .vscode/launch.json --- .vscode/launch.json | 26 +++++++++++++++++++++++--- docker-compose.yml | 5 +++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 963fcbf..c4716be 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -50,7 +50,25 @@ ] }, { - "name": "Docker Runner: Pre-Award", + "name": "Docker Runner: Form Runner", + "type": "node", + "request": "attach", + "address": "localhost", + "port": 9228, + "localRoot": "${workspaceFolder}/apps/digital-form-builder-adapter/runner", + "remoteRoot": "/usr/src/app/digital-form-builder-adapter/runner" + }, + { + "name": "Docker Runner: Form Designer", + "type": "node", + "request": "attach", + "address": "localhost", + "port": 9229, + "localRoot": "${workspaceFolder}/apps/digital-form-builder-adapter/designer", + "remoteRoot": "/usr/src/app/digital-form-builder-adapter/designer" + }, + { + "name": "Docker Runner: Pre-Award Stores", "type": "debugpy", "request": "attach", "connect": { @@ -63,7 +81,7 @@ "remoteRoot": "." } ] - }, + } ], "compounds": [ { @@ -72,7 +90,9 @@ "Docker Runner: Data Store", "Docker Runner: Fund Application Builder", "Docker Runner: Notification", - "Docker Runner: Pre-Award" + "Docker Runner: Pre-Award", + "Docker Runner: Form Runner", + "Docker Runner: Form Designer" ], "stopAll": true } diff --git a/docker-compose.yml b/docker-compose.yml index 666ca90..e39550c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -113,9 +113,10 @@ services: build: context: ./apps/digital-form-builder-adapter dockerfile: ./designer/Dockerfile - command: yarn designer production + command: yarn designer dev ports: - 3000:3000 + - 9229:9229 volumes: - './certs:/app-certs' env_file: @@ -149,7 +150,7 @@ services: build: context: ./apps/digital-form-builder-adapter dockerfile: ./runner/Dockerfile - command: yarn runner production + command: yarn runner dev ports: - 3009:3009 - 9228:9228 From 21b94569b2745c4bf87ea4f5111ea75da9aeb149 Mon Sep 17 00:00:00 2001 From: Nuwan Samarassinghe Date: Tue, 7 Jan 2025 12:56:43 +0000 Subject: [PATCH 2/2] Update launch.json --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c4716be..bd0e20f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -68,7 +68,7 @@ "remoteRoot": "/usr/src/app/digital-form-builder-adapter/designer" }, { - "name": "Docker Runner: Pre-Award Stores", + "name": "Docker Runner: Pre-Award", "type": "debugpy", "request": "attach", "connect": {