From 600bde25cf7a26fcd22cf3f7ed5041e757c34b6f Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 12 Dec 2023 15:33:26 +0000 Subject: [PATCH] add devcontainer --- .devcontainer/axon-ivy/Dockerfile | 19 +++++++++++++++++++ .devcontainer/axon-ivy/devcontainer.json | 24 ++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .devcontainer/axon-ivy/Dockerfile create mode 100644 .devcontainer/axon-ivy/devcontainer.json diff --git a/.devcontainer/axon-ivy/Dockerfile b/.devcontainer/axon-ivy/Dockerfile new file mode 100644 index 000000000..c5096b3a1 --- /dev/null +++ b/.devcontainer/axon-ivy/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/axon-ivy/devcontainer.json b/.devcontainer/axon-ivy/devcontainer.json new file mode 100644 index 000000000..433a2deaa --- /dev/null +++ b/.devcontainer/axon-ivy/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "Axon Ivy Dev Container", + "build": { + "dockerfile": "Dockerfile", + "args": { + "IVY_ENGINE_DOWNLOAD_URL": "https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" + } + }, + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "17", + "installMaven": "true" + } + }, + "customizations": { + "vscode": { + "extensions": ["axon-ivy.designer-11"], + "settings": { + "engine.runByExtension": true, + "engine.directory": "/usr/lib/axonivy-engine" + } + } + } +}