hunyadi / md2conf

Publish Markdown files to Confluence wiki
MIT License
56 stars 31 forks source link

Unable to pull `hunyadi/md2conf:latest` container image #60

Closed kedoodle closed 2 months ago

kedoodle commented 2 months ago

Hi there, it seems as though the hunyadi/md2conf container repository is not available for public pulls:

$ docker pull hunyadi/md2conf:latest
Error response from daemon: pull access denied for hunyadi/md2conf, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
hunyadi commented 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.

hunyadi commented 2 months ago

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!

kedoodle commented 2 months ago

Hey @hunyadi, thank you! Looks to be working on my machine --local.