Skip to content

Commit

Permalink
add devcontainer files
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-lmu committed Dec 13, 2023
1 parent 6ad1f56 commit a84d58c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}

0 comments on commit a84d58c

Please sign in to comment.