-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintenance: local documentation raises exception when run in docker #3073
Comments
Bumping docker image to |
This issue is now closed. Please be mindful that future comments are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so. |
Hey @am29d and @dreamorosi! dedicated some time tonight to check this issue, and I believe I've identified the root cause. Before going into the details, I must say that I don't understand why we need to use So, can you try to reproduce the fix in your local environment? If it works, I can submit a PR: 1 - Remove the current docker image: I checked the pipeline for building the documentation and it should not be affected when using While we're at it, why don't you also use the Thanks |
Hi Leo, thanks for looking into this, this helps. I have tested the steps you shared and confirmed that it works, however as discussed offline we might not be able to implement them. Removing the lock file would affect our supply chain posture, and also our OpenSSF scorecard. Ideally, if there's a conflict between the base image we are using and the additional dependencies we are installing, we should try to fix that instead. I don't have a good solution yet, but we can think of something. Regarding the |
Hi @dreamorosi, thanks for sharing the OpenSSF scorecard check with me. There is actually a check for The same issue is happening with Python and I figured out the problem. The dependabot is bumping packages and dependencies in the If you look here, you will see that it is using mkdocs 1.6.0, even though the latest is 1.6.1. I created a new This is the first time this has happened and I don't know if it will happen again in the future, but it seems like we don't have many options now. I'm sending a PR to fix this. |
This issue is now closed. Please be mindful that future comments are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so. |
Summary
When running the documentation locally using Docker the
mkdocs serve
command seems to failRunning
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs powertools-typescript/docs
, causes this exception:The issue seem to have been introduced in this PR and only occurs when using Docker. If I run the docs using Python directly on my machine I am able to run it normally.
Likewise, the build for the docs is also unaffected.
We should investigate why this is happening.
Why is this needed?
So that contributors in this repo can run the docs locally without having to install Python on their machines.
Which area does this relate to?
Other
Solution
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: