RedHat Docker image fails to build (–enablerepo rhel-7-server-optional-rpm)

Published

I build a Dockerimage with additional repos.
This is the code to the part where it fails:

FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ADD content /

RUN cp /opt/yum/HDP.repo /etc/yum.repos.d/HDP.repo

RUN yum -y update 
&&  yum -y --enablerepo rhel-7-server-optional-rpms install bzip2 
    python36-pip 
    python36 
    python36-devel 
    openssl 
    krb5-workstation 
    mysql-devel 
    gcc 
    hadoop-client 
    hadoop-libhdfs 
    libtirpc-devel 
    telnet 
 && yum clean all -y

The error looks like this:

08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: python3-libs(x86-32) = 3.6.8-18.el7
08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: libutil.so.1
08:55:56  Error: Package: python3-devel-3.6.8-18.el7.x86_64 (rhel-7-server-optional-rpms)
08:55:56             Requires: python3-libs(x86-64) = 3.6.8-18.el7
08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: python3-setuptools
08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: libc.so.6
08:55:56  Error: Package: hadoop_3_1_0_210_2-3.1.1.3.1.0.210-2.x86_64 (HDP)
08:55:56             Requires: psmisc
08:55:56  Error: Package: python3-devel-3.6.8-18.el7.x86_64 (rhel-7-server-optional-rpms)
08:55:56             Requires: libpython3.6m.so.1.0()(64bit)
08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: libc.so.6(GLIBC_2.3.4)
08:55:56  Error: Package: python3-devel-3.6.8-18.el7.x86_64 (rhel-7-server-optional-rpms)
08:55:56             Requires: python3-rpm-generators
08:55:56  Error: Package: python3-devel-3.6.8-18.el7.x86_64 (rhel-7-server-optional-rpms)
08:55:56             Requires: python-rpm-macros
08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: python3-pip
08:55:56  Error: Package: python3-3.6.8-18.el7.i686 (rhel-7-server-optional-rpms)
08:55:56             Requires: libc.so.6(GLIBC_2.0)
08:55:56  **********************************************************************
08:55:56  yum can be configured to try to resolve such errors by temporarily enabling
08:55:56  disabled repos and searching for missing dependencies.
08:55:56  To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf

On the bottom, there is a solution offered, but since I am working with a docker Image from another source, how to I manage to fix this?

Can anyone help me?

Source: Docker Questions

Published
Categorised as docker, redhat, rhel7, yum Tagged , , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq