Now I see that later in docs

> COPY ./etc-pki-entitlement /etc/pki/entitlement

> COPY ./rhsm-conf /etc/rhsm

> COPY ./rhsm-ca /etc/rhsm/ca

This is in my opinion inconsistent. We can't use same Dockerfile locally
and in OpenShift. Locally subscription is passed automatically to the
build while in OpenShift we need these COPY commands.

Or is something I'm missing here? Some way to use same Dockerfile?

Aleksandar Kostadinov wrote on 7.08.20 г. 22:28 ч.:
> I'm reading documentation [1] but adding the secret mounted under
> `etc-pki-entitlement` directory but subscription manager still doesn't
> find the extra repos.
> 
> I don't see 3.11 specific information. Should it work in another way?
> 
> I also see a blog post from this year [2]. It suggests copying
> entitlement files inside the Dockerfile which approach I don't like
> since I prefer independent build logic from underlying environment and
> doesn't match documentation [1]. Blog doesn't allow comments though.
> 
> So is documentation or the blog correct? Is there a difference between
> 4.x and 3.11?
> 
> Thank you!
> 
> [1]
> https://docs.openshift.com/container-platform/4.4/builds/running-entitled-builds.html#builds-source-secrets-entitlements_running-entitled-builds
> [2]
> https://www.openshift.com/blog/how-to-use-entitled-image-builds-to-build-drivercontainers-with-ubi-on-openshift
> 

_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to