You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission denied. mkdocs tries to build the docs in $PWD/project-static/docs which is owned by the user on the host system (uid 1000 for me) but is running as uid 999 in the container
My quick workaround was to run build_nautobot_docs and build_example_plugin_docs as the current user:
I'm not necessarily opposed to that option. I was kinda worried that we might hit issues like this with #4130 given the difference in how Docker Desktop works on Mac versus other platforms. Whatever the cleanest/quickest way to fix this turns out to be is fine with me.
I'd like to propose that we stick with root in the dev stage for now. Even with the workaround proposed above, after switching to the develop branch, the docs get created by root so when switching back to next I have to rm -rf examples/example_plugin/example_plugin/static/example_plugin/docs and rm -rf nautobot/project-static/docs to get back to a working state.
Environment
Steps to Reproduce
next
(after Fix nodejs dev container for real #4130)inv build-and-check-docs
Expected Behavior
Docs are built
Observed Behavior
Permission denied. mkdocs tries to build the docs in
$PWD/project-static/docs
which is owned by the user on the host system (uid 1000 for me) but is running as uid 999 in the containerMy quick workaround was to run
build_nautobot_docs
andbuild_example_plugin_docs
as the current user:I'm still getting permission denied when unittest tries to create
.coverage
so we may need to run unittest as the local user also.The text was updated successfully, but these errors were encountered: