Skip to content
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

docs: Fix "make render-docs" permissions issue #10922

Merged
merged 1 commit into from Apr 9, 2020

Conversation

joestringer
Copy link
Member

Some versions of docker, when passed the --volume flag, will create
the directory as root before launching the container, which caused
make render-docs to fail with a permissions issue like the following:

Exception occurred:
File "/usr/local/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/src/Documentation/_build/doctrees'

Fix it by creating the directory as the current user first.

Fixes: #10869

Some versions of docker, when passed the `--volume` flag, will create
the directory *as root* before launching the container, which caused
`make render-docs` to fail with a permissions issue like the following:

  Exception occurred:
    File "/usr/local/lib/python3.7/os.py", line 221, in makedirs
      mkdir(name, mode)
  PermissionError: [Errno 13] Permission denied: '/src/Documentation/_build/doctrees'

Fix it by creating the directory as the current user first.

Fixes: cilium#10869

Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer added pending-review area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. release-note/misc This PR makes changes that have no direct user impact. labels Apr 9, 2020
@joestringer joestringer requested a review from a team as a code owner April 9, 2020 17:17
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.8.0 Apr 9, 2020
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 46.689% when pulling 651b619 on joestringer:submit/fix-render-docs into 7c88be7 on cilium:master.

@joestringer joestringer merged commit 5958dd6 into cilium:master Apr 9, 2020
1.8.0 automation moved this from In progress to Merged Apr 9, 2020
@joestringer joestringer deleted the submit/fix-render-docs branch April 9, 2020 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. release-note/misc This PR makes changes that have no direct user impact.
Projects
No open projects
1.8.0
  
Merged
Development

Successfully merging this pull request may close these issues.

make render-docs broken due to permissions issue
3 participants