]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-container-flake8: add selinux flag to volume 1693/head
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 27 Oct 2020 19:30:01 +0000 (15:30 -0400)
committerDimitri Savineau <dsavinea@redhat.com>
Tue, 27 Oct 2020 19:31:12 +0000 (15:31 -0400)
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 <dsavinea@redhat.com>
ceph-container-flake8/build/build

index 758a78164077eb34b872f63c8d767317266b32ab..0b9338841fd4ed17cce97e27477051d133eb9fa7 100755 (executable)
@@ -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 $?