From d367a97c58c093d9eadc5a2d509271b80286e66e Mon Sep 17 00:00:00 2001 From: Zdenek Veleba Date: Wed, 8 Jan 2025 09:55:37 +0100 Subject: [PATCH 1/2] Update Dockerfile Centos 8 is not available anymore --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07cfb79..9d93fea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM quay.io/centos/centos:stream8 +FROM docker.io/redhat/ubi8:latest # pipeline dependecies -RUN yum -y install git python3 python3-flask python3-requests python3-libxml2 python3-yaml python3-magic +RUN yum -y install git python3 python3-requests python3-libxml2 python3-yaml # pipeline tests dependecies RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm; \ yum -y install make python3-pylint diffutils @@ -11,9 +11,7 @@ RUN yum -y install yum-utils; \ yum-config-manager --enable beaker-client; \ yum -y install python3-bugzilla beaker-client python3-productmd -# docs dependencies -RUN yum-config-manager --enable powertools; \ - yum -y install python3-sphinx +RUN pip3 install python-magic flask sphinx # fetch other libraries and tools WORKDIR /root From 7ae971de8baf341619614eb651faee7c72a34394 Mon Sep 17 00:00:00 2001 From: Zdenek Veleba Date: Fri, 10 Jan 2025 14:52:41 +0100 Subject: [PATCH 2/2] Ignore magic module when linting Linting magic module from pip doesn't seem to work correctly --- .pylintrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..de7e378 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,3 @@ +[TYPECHECK] +ignored-modules=magic +