From b829dca595fcefeafaa0f84fcecac8337a3c67fd Mon Sep 17 00:00:00 2001 From: Adar Nimrod Date: Tue, 13 Jul 2021 19:31:34 +0300 Subject: [PATCH] Replace the UBI7 base with Centos7. I'm not sure why, but the build fails with an obscure message. For future reference, th build error is "could not resolve digest for registry.access.redhat.com/ubi7/ubi:latest" and in the dockerd log the error is "transport: Error while dialing only one connection allowed". --- Dockerfile | 45 +++++++++------------------------------------ 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0294f5..9a8a730 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,42 +1,15 @@ # hadolint ignore=DL3006 -FROM registry.access.redhat.com/ubi7/ubi +FROM registry.hub.docker.com/library/centos:7 # hadolint ignore=DL3013,DL3033 -RUN yum install -y --disableplugin=subscription-manager \ - autoconf \ - automake \ - binutils \ - bison \ - byacc \ - cscope \ - ctags \ - diffstat \ - doxygen \ - elfutils \ - flex \ - gcc \ - gcc-c++ \ - gcc-gfortran \ - gettext \ - git \ - indent \ - intltool \ - libtool \ - make \ - patch \ - patchutils \ - pkgconfig \ - rcs \ - redhat-rpm-config \ - rh-python36-python-devel \ - rh-python36-python-pip \ - rpm-build \ - rpm-sign \ - subversion \ - swig \ - systemtap \ +RUN yum group install -y "Development tools" && \ + yum install -y \ + python3-devel \ + python3-pip \ + python3-wheel \ && \ - yum --disableplugin=subscription-manager clean all && \ - pip install --no-cache-dir --progress-bar=off \ + yum clean all && \ + pip3 install --no-cache-dir --upgrade pip && \ + pip3 install --no-cache-dir \ docutils \ pipenv \ poetry \ -- GitLab