forked from asciidoctor/docker-asciidoctor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mermaid diagrams support fixes asciidoctor#109
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,16 @@ ARG asciidoctor_diagram_version=1.5.19 | |
ARG asciidoctor_epub3_version=1.5.0.alpha.9 | ||
ARG asciidoctor_mathematical_version=0.3.1 | ||
ARG asciidoctor_revealjs_version=2.0.0 | ||
ARG mermaid_cli_version=0.5.1 | ||
|
||
ENV ASCIIDOCTOR_VERSION=${asciidoctor_version} \ | ||
ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \ | ||
ASCIIDOCTOR_PDF_VERSION=${asciidoctor_pdf_version} \ | ||
ASCIIDOCTOR_DIAGRAM_VERSION=${asciidoctor_diagram_version} \ | ||
ASCIIDOCTOR_EPUB3_VERSION=${asciidoctor_epub3_version} \ | ||
ASCIIDOCTOR_MATHEMATICAL_VERSION=${asciidoctor_mathematical_version} \ | ||
ASCIIDOCTOR_REVEALJS_VERSION=${asciidoctor_revealjs_version} | ||
ASCIIDOCTOR_REVEALJS_VERSION=${asciidoctor_revealjs_version} \ | ||
MERMAID_CLI_VERSION=${mermaid_cli_version} | ||
|
||
# Installing package required for the runtime of | ||
# any of the asciidoctor-* functionnalities | ||
|
@@ -80,6 +82,23 @@ RUN apk add --no-cache --virtual .pythonmakedepends \ | |
seqdiag \ | ||
&& apk del -r --no-cache .pythonmakedepends | ||
|
||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true | ||
COPY puppeteer.json /etc | ||
|
||
# Installing NodeJS dependencies for additional | ||
# functionnalities as diagrams and chromium headless | ||
RUN apk add --no-cache \ | ||
chromium \ | ||
freetype \ | ||
freetype-dev \ | ||
harfbuzz \ | ||
nodejs \ | ||
nss \ | ||
ttf-freefont \ | ||
yarn \ | ||
&& yarn global add [email protected] \ | ||
&& echo "alias mmdc='mmdc -p /etc/puppeteer.json'" > /etc/profile.d/mmdc | ||
|
||
WORKDIR /documents | ||
VOLUME /documents | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"args": ["--no-sandbox"], | ||
"executablePath": "/usr/bin/chromium-browser" | ||
} |
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