pozgo / docker-mkdocs

MkDocs in a Docker. (Alpine)
MIT License
86 stars 34 forks source link

MkDocs fails to start due to conflict between material for MkDocs and the MkDocs version included in this image #54

Closed owenfiscus closed 1 year ago

owenfiscus commented 3 years ago

Error is:

pkg_resources.VersionConflict: (mkdocs 1.1.2 (/usr/lib/python3.8/site-packages), Requirement.parse('mkdocs>=1.2.2'))

I've attempted to set the MKDOCS_VERSION env variable to a later version but that doesn't seem to work using docker-compose.

owenfiscus commented 3 years ago

Pulling the git repo, changing MKDOCS_VERSION=1.1.2 to MKDOCS_VERSION=1.2.2 (the current version of MkDocs) in the Dockerfile, building the image, and then using that image in my docker-compose file appears to have resolved the issue.

I would create a pull request for this but admittedly, I'm a bit of a noob. If there is some good documentation you could point me to for that, I'd be happy to make one.

pozgo commented 3 years ago

First, thank you for the feedback and willingness to improve the image :D

Below is a link to how to create PR and when it lands, I'll check it and merge it.

https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request

owenfiscus commented 3 years ago

Done. Thank you for providing that documentation and for maintaining this image!

sag1 commented 3 years ago

Hello @pozgo My project is also impacted due to this. Could you please merge the PR ?

owenfiscus commented 2 years ago

It appears the new image failed to build, could you take a look into the issue? It appears to have failed some form of authentication.

pozgo commented 1 year ago

Please try to use 1.4.2 and report back if it fails. I'll try to get it. fixed if it does.

pozgo commented 1 year ago

Stale:

AFAIK it's fixed in later versions of the image. If you guys still see the error please create a new issue.