From a84d58c15f7353b594f96b5d76a602501c4cf6d8 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 13 Dec 2023 09:33:12 +0100 Subject: [PATCH 1/5] add devcontainer files --- .devcontainer/Dockerfile | 19 +++++++++++++++++++ .devcontainer/devcontainer.json | 25 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..c5096b3a1 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,19 @@ +FROM mcr.microsoft.com/devcontainers/base:bookworm + +ARG IVY_ENGINE_DOWNLOAD_URL +ARG IVY_HOME=/usr/lib/axonivy-engine + +RUN apt-get update && \ + apt-get install -y wget unzip && \ + rm -rf /var/lib/apt/lists/* && \ + \ + wget ${IVY_ENGINE_DOWNLOAD_URL} -O /tmp/ivy.zip --no-verbose && \ + unzip /tmp/ivy.zip -d ${IVY_HOME} && \ + rm -f /tmp/ivy.zip && \ + \ + mkdir ${IVY_HOME}/applications && \ + mkdir ${IVY_HOME}/configuration/applications && \ + rm -r ${IVY_HOME}/system/demo-applications && \ + chown -R vscode:0 ${IVY_HOME} && \ + \ + chmod -R g=u ${IVY_HOME} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..317dee71c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "Axon Ivy Dev Container", + "build": { + "dockerfile": "Dockerfile", + "args": { + "IVY_ENGINE_DOWNLOAD_URL": "https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" + } + }, + "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "17", + "installMaven": "true" + } + }, + "customizations": { + "vscode": { + "extensions": ["axon-ivy.designer-11"], + "settings": { + "engine.runByExtension": false, + "engine.directory": "/usr/lib/axonivy-engine" + } + } + } +} From a8d1d81ec69bc3590ae4674215963565c842ce7e Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 18 Dec 2023 11:43:07 +0100 Subject: [PATCH 2/5] forwardports --- .devcontainer/devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 317dee71c..8c026edd8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,6 +7,7 @@ } }, "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", + "forwardPorts": [8080], "features": { "ghcr.io/devcontainers/features/java:1": { "version": "17", From 0c923839b10b2fe5c3c5768388770d992e62d999 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 18 Dec 2023 14:27:04 +0100 Subject: [PATCH 3/5] wip --- .devcontainer/devcontainer.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8c026edd8..433a2deaa 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,8 +6,6 @@ "IVY_ENGINE_DOWNLOAD_URL": "https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" } }, - "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", - "forwardPorts": [8080], "features": { "ghcr.io/devcontainers/features/java:1": { "version": "17", @@ -18,7 +16,7 @@ "vscode": { "extensions": ["axon-ivy.designer-11"], "settings": { - "engine.runByExtension": false, + "engine.runByExtension": true, "engine.directory": "/usr/lib/axonivy-engine" } } From a88d2b7bced23181df323e848fab03404911f700 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 18 Dec 2023 16:46:59 +0100 Subject: [PATCH 4/5] back to poststartcmd --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 433a2deaa..317dee71c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,6 +6,7 @@ "IVY_ENGINE_DOWNLOAD_URL": "https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" } }, + "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", "features": { "ghcr.io/devcontainers/features/java:1": { "version": "17", @@ -16,7 +17,7 @@ "vscode": { "extensions": ["axon-ivy.designer-11"], "settings": { - "engine.runByExtension": true, + "engine.runByExtension": false, "engine.directory": "/usr/lib/axonivy-engine" } } From 2a4a28f3de2003d8ae85855419a97806d157a3ec Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 19 Dec 2023 13:57:52 +0100 Subject: [PATCH 5/5] update devcontainer --- .devcontainer/Dockerfile | 1 - .devcontainer/devcontainer.json | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c5096b3a1..678f9f354 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -13,7 +13,6 @@ RUN apt-get update && \ \ mkdir ${IVY_HOME}/applications && \ mkdir ${IVY_HOME}/configuration/applications && \ - rm -r ${IVY_HOME}/system/demo-applications && \ chown -R vscode:0 ${IVY_HOME} && \ \ chmod -R g=u ${IVY_HOME} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 317dee71c..3361204a6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,14 +3,16 @@ "build": { "dockerfile": "Dockerfile", "args": { - "IVY_ENGINE_DOWNLOAD_URL": "https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" + "IVY_ENGINE_DOWNLOAD_URL": "https://dev.axonivy.com/permalink/dev/axonivy-engine-slim.zip" } }, + "forwardPorts": [8080], "postStartCommand": "/usr/lib/axonivy-engine/bin/AxonIvyEngine", "features": { "ghcr.io/devcontainers/features/java:1": { "version": "17", - "installMaven": "true" + "installMaven": "true", + "jdkDistro": "tem" } }, "customizations": { @@ -18,6 +20,7 @@ "extensions": ["axon-ivy.designer-11"], "settings": { "engine.runByExtension": false, + "engine.url": "http://localhost:8080/", "engine.directory": "/usr/lib/axonivy-engine" } }