From 37da90101caf4f67e28b643d3ca0759008b4f06c Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 20 Dec 2023 16:42:12 +0100 Subject: [PATCH 1/6] run mvn package after creating the container --- .devcontainer/devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3361204a6..1d4fbeb28 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,6 +7,7 @@ } }, "forwardPorts": [8080], + "postCreateCommand": "mvn package --batch-mode -Dmaven.test.skip=true -Divy.engine.directory=/usr/lib/axonivy-engine", "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", "features": { "ghcr.io/devcontainers/features/java:1": { From 1e239645c64e8ae67a00091c0010997436a061ab Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 22 Dec 2023 08:41:19 +0000 Subject: [PATCH 2/6] run engine using nohup --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1d4fbeb28..d38dd8ff1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,7 @@ }, "forwardPorts": [8080], "postCreateCommand": "mvn package --batch-mode -Dmaven.test.skip=true -Divy.engine.directory=/usr/lib/axonivy-engine", - "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", + "postStartCommand": "mkdir -p logs && rm -f logs/eninge-nohup.out && nohup bash -c '/usr/lib/axonivy-engine/bin/AxonIvyEngine &'> logs/engine-nohup.out", "features": { "ghcr.io/devcontainers/features/java:1": { "version": "17", From 1476427a7b92e48aae10108194aa98e0cb5c5c58 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 22 Dec 2023 08:57:39 +0000 Subject: [PATCH 3/6] nohup mvn build --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d38dd8ff1..a0eff1bcb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,7 @@ } }, "forwardPorts": [8080], - "postCreateCommand": "mvn package --batch-mode -Dmaven.test.skip=true -Divy.engine.directory=/usr/lib/axonivy-engine", + "postCreateCommand": "mkdir -p logs && rm -f logs/maven-nohup.out && nohup bash -c 'mvn package --batch-mode -Dmaven.test.skip=true -Divy.engine.directory=/usr/lib/axonivy-engine &'> logs/maven-nohup.out", "postStartCommand": "mkdir -p logs && rm -f logs/eninge-nohup.out && nohup bash -c '/usr/lib/axonivy-engine/bin/AxonIvyEngine &'> logs/engine-nohup.out", "features": { "ghcr.io/devcontainers/features/java:1": { From 238c1715cfe945cb208a4786e43195882414de74 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 22 Dec 2023 12:08:58 +0000 Subject: [PATCH 4/6] go offline --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a0eff1bcb..b6153f320 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,7 @@ } }, "forwardPorts": [8080], - "postCreateCommand": "mkdir -p logs && rm -f logs/maven-nohup.out && nohup bash -c 'mvn package --batch-mode -Dmaven.test.skip=true -Divy.engine.directory=/usr/lib/axonivy-engine &'> logs/maven-nohup.out", + "postCreateCommand": "mkdir -p logs && rm -f logs/maven-nohup.out && nohup bash -c 'mvn dependency:go-offline &'> logs/maven-nohup.out", "postStartCommand": "mkdir -p logs && rm -f logs/eninge-nohup.out && nohup bash -c '/usr/lib/axonivy-engine/bin/AxonIvyEngine &'> logs/engine-nohup.out", "features": { "ghcr.io/devcontainers/features/java:1": { From b6847245dc1eb602a45851da9ca5de3b87702b20 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 22 Dec 2023 15:30:04 +0100 Subject: [PATCH 5/6] wip --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b6153f320..ec6f18245 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,8 @@ } }, "forwardPorts": [8080], - "postCreateCommand": "mkdir -p logs && rm -f logs/maven-nohup.out && nohup bash -c 'mvn dependency:go-offline &'> logs/maven-nohup.out", + "containerEnv": { "JAVA_OPTS_IVY_SYSTEM": "-Ddev.mode=true -Divy.engine.testheadless=true" }, + "postCreateCommand": "mkdir -p logs && rm -f logs/maven-nohup.out && nohup bash -c 'mvn --batch-mode dependency:go-offline &'> logs/maven-nohup.out", "postStartCommand": "mkdir -p logs && rm -f logs/eninge-nohup.out && nohup bash -c '/usr/lib/axonivy-engine/bin/AxonIvyEngine &'> logs/engine-nohup.out", "features": { "ghcr.io/devcontainers/features/java:1": { From b7d0bc9727181095a69b595bef2c8905d5629252 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 22 Dec 2023 15:37:50 +0100 Subject: [PATCH 6/6] no offline mvn --- .devcontainer/devcontainer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ec6f18245..88d8accfa 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -8,7 +8,6 @@ }, "forwardPorts": [8080], "containerEnv": { "JAVA_OPTS_IVY_SYSTEM": "-Ddev.mode=true -Divy.engine.testheadless=true" }, - "postCreateCommand": "mkdir -p logs && rm -f logs/maven-nohup.out && nohup bash -c 'mvn --batch-mode dependency:go-offline &'> logs/maven-nohup.out", "postStartCommand": "mkdir -p logs && rm -f logs/eninge-nohup.out && nohup bash -c '/usr/lib/axonivy-engine/bin/AxonIvyEngine &'> logs/engine-nohup.out", "features": { "ghcr.io/devcontainers/features/java:1": {