Skip to content

Commit

Permalink
Companion containers return JSON response
Browse files Browse the repository at this point in the history
- Allow to return the complete error from companion containers
- Add a convert timeout on all companion containers (bpmn, excalidraw, mermaid and diagrams.net)
- Add logger on all companion containers
- Make a distinction between unexpected errors and bad syntax errors
- Switch to ESM
  • Loading branch information
ggrossetie committed Sep 23, 2023
1 parent 6865551 commit de418e2
Show file tree
Hide file tree
Showing 23 changed files with 815 additions and 159 deletions.
5 changes: 3 additions & 2 deletions bpmn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ WORKDIR /usr/local/kroki/

RUN mkdir -p /usr/local/kroki/node && chown kroki:kroki -R /usr/local/kroki

ENV KROKI_EXCALIDRAW_PAGE_URL=file:///usr/local/kroki/assets/index.html
ENV KROKI_BPMN_PAGE_URL=file:///usr/local/kroki/assets/index.html
# 15 seconds
ENV KROKI_BPMN_CONVERT_TIMEOUT=15000
ENV PUPPETEER_EXECUTABLE_PATH=/usr/lib/chromium/chrome
#ENV DEBUG="puppeteer:*"
ENV LEVEL="info"
Expand All @@ -25,4 +27,3 @@ RUN npm i --omit=dev
EXPOSE 8003

ENTRYPOINT ["node", "src/index.js"]

238 changes: 238 additions & 0 deletions bpmn/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions bpmn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@kroki/bpmn-server",
"version": "1.0.0",
"description": "A micro server built on top of the BPMN diagram library.",
"type": "module",
"main": "src/index.js",
"bin": "src/index.js",
"scripts": {
Expand All @@ -20,6 +21,8 @@
"dependencies": {
"bpmn-js": "14.0.0",
"micro": "10.0.1",
"pino": "^8.15.0",
"pino-debug": "^2.0.0",
"puppeteer": "20.6.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit de418e2

Please sign in to comment.