From 1e779c690c4015c0986b8282ada94e53b6c6ea0b Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 27 Oct 2020 15:30:01 -0400 Subject: [PATCH] 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 --- ceph-container-flake8/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $? -- 2.47.3