Skip to content

Commit

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

0 comments on commit 600bde2

Please sign in to comment.