Skip to content

Turn off SELinux in doc build container#19940

Merged
mosabua merged 1 commit intotrinodb:masterfrom
dekimir:doc-build-security-opt
Dec 7, 2023
Merged

Turn off SELinux in doc build container#19940
mosabua merged 1 commit intotrinodb:masterfrom
dekimir:doc-build-security-opt

Conversation

@dekimir
Copy link
Contributor

@dekimir dekimir commented Nov 28, 2023

Description

If SELinux is protecting the host directory where trino/docs resides, the build container cannot mount it, and we get this error:

Configuration error:
config directory doesn't contain a conf.py file (/docs/src/main/sphinx)

This patch makes Docker explicitly disable security policies that protect the host, eliminating the error.

Additional context and related issues

#19938 (comment)

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

If SELinux is protecting the host directory where trino/docs resides,
the build container cannot mount it, and we get this error:

Configuration error:
config directory doesn't contain a conf.py file (/docs/src/main/sphinx)

This patch makes Docker explicitly disable security policies that
protect the host, eliminating the error.
@cla-bot
Copy link

cla-bot bot commented Nov 28, 2023

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@mosabua mosabua self-assigned this Dec 1, 2023
@mosabua
Copy link
Member

mosabua commented Dec 7, 2023

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Dec 7, 2023

The cla-bot has been summoned, and re-checked this pull request!

@mosabua mosabua merged commit 22b3d03 into trinodb:master Dec 7, 2023
@github-actions github-actions bot added this to the 435 milestone Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants