]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-container-flake8: migrate to alpine/flake8 image 2158/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 10 Aug 2023 21:09:23 +0000 (23:09 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 10 Aug 2023 21:09:23 +0000 (23:09 +0200)
the current image is old and uses a flake8 build based on
py2.7.

It means we are checking python 3.x code with a python 2.7 version
of flake8. That doesn't work very well.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
ceph-container-flake8/build/build

index ccc54bef7ff7aef4e880daaf2705e44c52e94383..877626dcaedb255e5cf729245daa996baf14cf6b 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:z -v "$(pwd)"/"$file":/code/"$file":z eeacms/flake8
+        sudo docker run --rm -v "$(pwd)"/"$file":/apps/"$file":z docker.io/alpine/flake8 "$file"
         popd
     done
     return $?