Can Binaries Built on UBI be Deployed on RHEL?

Latest response

According to a Blog Post, one should not build an application on RHEL and expect it to work on UBI. It has to be built specifically for UBI:

Not free Red Hat Enterprise Linux (RHEL). You should not build
your application on a RHEL base image first, then try and move it to
UBI and expect it to work. That’s an anti-pattern.

Is this accurate?

What about the other way around; is it possible to build binaries on, say, Universal Base Image (UBI) 7.7 and deploy them on RHEL 7.7 Server (non-containerized)?

Is the Red Hat Developer Toolset Compatibility Matrix also valid for UBI?

UBI and RHEL appears to use the same packages, so I can't see any specific reason for why UBI/RHEL binaries are not portable.

Responses