From: Dimitri Savineau Date: Tue, 27 Oct 2020 19:30:01 +0000 (-0400) Subject: ceph-container-flake8: add selinux flag to volume X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1693%2Fhead;p=ceph-build.git ceph-container-flake8: add selinux flag to volume Without the selinux flag on the container volume, the flake8 command fails with: E902 IOError: [Errno 13] Permission denied: '/envglobals.py' Signed-off-by: Dimitri Savineau --- diff --git a/ceph-container-flake8/build/build b/ceph-container-flake8/build/build index 758a7816..0b933884 100755 --- a/ceph-container-flake8/build/build +++ b/ceph-container-flake8/build/build @@ -21,7 +21,7 @@ function check(){ while read -r filename; do pushd "$(dirname "$filename")" file=$(basename "$filename") - sudo docker run --rm -v "$workspace"/ceph-container/tox.ini:/tox.ini -v "$(pwd)"/"$file":/"$file" eeacms/flake8 /"$file" + sudo docker run --rm -v "$workspace"/ceph-container/tox.ini:/tox.ini:z -v "$(pwd)"/"$file":/"$file":z eeacms/flake8 /"$file" popd done return $?