Short answer is mileage may vary. See question #21 here:
On Tue, Nov 5, 2019 at 9:47 AM Josh Boyer <jwboyer(a)redhat.com> wrote:
On Tue, Nov 5, 2019 at 9:39 AM Daniel Walsh <dwalsh(a)redhat.com>
> On 11/5/19 9:24 AM, bryan.hepworth(a)gmail.com wrote:
> > Just a quick question..
> > Is there a best practice for getting epel in to a ubi8 container?
> > I'm trying to do this with yum -y install and the epel url. Do I need
to enable anything else?
That works. There's not really a better way. You need to get the
repo file included somehow, and either that or doing it via copying a
local repo file in an image build works fine.
If you want to then use that as a base image for other container
builds that need content from EPEL, you can build that image and use
it in the FROM line for any subsequent containers.
Scott McCarty, RHCA
Product Management - Containers, Red Hat Enterprise Linux & OpenShift
Have you ever wondered what happens behind the scenes when you type
into a browser and hit enter?