]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-container-lint: Add selinux flag to volume 1302/head
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 21 May 2019 21:03:31 +0000 (17:03 -0400)
committerDimitri Savineau <dsavinea@redhat.com>
Tue, 21 May 2019 21:03:31 +0000 (17:03 -0400)
Without the selinux flag on the container volume, the container
command will fail:

: openBinaryFile: permission denied (Permission denied)

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
ceph-container-lint/build/build

index e252783846094cd16367d1f5c59e1c33578ee01f..5f4288d426148631e9f96cc2ba30d32466348a76 100755 (executable)
@@ -25,7 +25,7 @@ function check(){
     while read -r filename; do
         pushd "$(dirname "$filename")"
         file=$(basename "$filename")
-        sudo docker run -v "$(pwd)"/"$file":/"$file" koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file"
+        sudo docker run -v "$(pwd)"/"$file":/"$file":z koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file"
         popd
     done
     return $?