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" + } + } + } +}