Within a Containerfile (using ubi8) I can do this:
RUN yum repolist
Which shows the enabled repos:
STEP 7/14: RUN yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
subscription-manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-manager to register.
repo id repo name
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
ubi-8-appstream-rpms Red Hat Universal Base Image 8 (RPMs) - AppStream
ubi-8-baseos-rpms Red Hat Universal Base Image 8 (RPMs) - BaseOS
ubi-8-codeready-builder-rpms Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder
--> ca3f7ff519a9
I want to add a non-Redhat repo but when I try this:
COPY my.repo /etc/yum.repos.d. OR COPY my.repo etc/yum.repos.d
the result is an error.
So my basic questions are:
Is it possible to add repos for yum/dnf?
And if so, what's the magic ??
Thanks
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.