Closed kedoodle closed 2 months ago
Thanks for raising this issue. Unfortunately, the documentation for Docker containers was merged somewhat prematurely, they are not yet available for general use.
md2conf in Docker has been a contributed feature. Currently, the image is based on Python and Node.js installed on Alpine Linux. md2conf uses @mermaid-js/mermaid-cli
to convert Mermaid diagrams to PNG or SVG images. Unfortunately, mermaid-cli
throws an error when run:
Error: Failed to launch the browser process! spawn /root/.cache/puppeteer/chrome-headless-shell/linux-129.0.6668.70/chrome-headless-shell-linux64/chrome-headless-shell ENOENT
As soon as we figure out a solution (which will likely involve moving away from Alpine Linux), I will publish the image to the container repository.
I have overhauled Dockerfile
and updated several *.py
sources to properly support @mermaid-js/mermaid-cli
such that md2conf works in Docker even when Mermaid diagrams are involved. The following commands now execute without error on the branch dev
:
docker build -f Dockerfile -t md2conf-image .
docker run -i -t --rm --env-file .env --name md2conf -v $(pwd):/data md2conf-image sample/index.md --ignore-invalid-url
Can you confirm they work in your environment as you expect? Thanks in advance!
Hey @hunyadi, thank you! Looks to be working on my machine --local
.
Hi there, it seems as though the
hunyadi/md2conf
container repository is not available for public pulls: