-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Mermaid generation context issues (#946)
* Add dependencies in Dockerfile +var GENERATE_FLOW_DOC to disable flow doc * dockerfile only * puppeteer config * Run mermaid with docker if we are on linux * Build again * Use docker by default when on linux * good file name * puppeteer default config * MermaidCli generation fallbacks * fallbacks * fixes
- Loading branch information
Showing
6 changed files
with
96 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,24 @@ FROM alpine:3.21 | |
LABEL maintainer="Nicolas VUILLAMY <[email protected]>" | ||
|
||
RUN apk add --update --no-cache \ | ||
chromium \ | ||
coreutils \ | ||
git \ | ||
bash \ | ||
nodejs \ | ||
npm | ||
npm \ | ||
# Required for docker | ||
docker \ | ||
openrc \ | ||
# Required for puppeteer | ||
chromium \ | ||
nss \ | ||
freetype \ | ||
harfbuzz \ | ||
ca-certificates \ | ||
ttf-freefont | ||
|
||
# Start docker daemon in case mermaid-cli image is used | ||
RUN rc-update add docker boot && (rc-service docker start || true) | ||
|
||
# Do not use puppeteer embedded chromium | ||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters