openresty / docker-openresty

Docker tooling for OpenResty
https://hub.docker.com/r/openresty/openresty
BSD 2-Clause "Simplified" License
935 stars 525 forks source link

RHEL support for openresty #248

Open computinglife opened 5 months ago

computinglife commented 5 months ago

Hi,

Are there any images which can be used to target RHEL ? I am assuming the latest centos 8 image cannot be used to do that since centos starting from 8.0 is no longer a downstream build of RHEL ? Or is that a non issue from a container perspective ?

I am open to contributing code to make this happen if there is anything that needs to be done. But there have been reports of docker not being supported by redhat..

I am not sure how then the centos image exists here..please do let me know

neomantra commented 5 months ago

Check out this issue for more history / context. This page has a list of the available upstream packages.

I'm not a RHEL user (nor really an OpenResty user anymore), so the diaspora of that distribution became confusing to me. If there's a set of RHEL images that can be built openly on Travis, meaning no RHEL commercial license is needed, then we can support it here.

If you look at the travis.yml file, it's pretty easy to tweak the upstream builds to expose more distros. Sometimes Dockerfile tweaks are needed, but that's OK too.

I'm happy to include any changes that support this.

computinglife commented 5 months ago

Thanks for responding and your gracious offer to help.

To start, I think the problem is a bit more complicated than the rocky support added in the reported issue. The issue wrt RHEL + rocky are these

  1. RHEL has stopped docker support apparently - podman is the way to go.

  2. Once CentOS died, many alternatives propped up. Rocky is one of them. Rocky is compatible with RHEL - but this flavour is avoided by many including, big coporations because it is predicted to end up in the same condition as CentOS (started by the same person who ran CentOS)

So Alma (being a community initiative) is more favoured & is binary compatible with RHEL and is the other CentOS replacement in the market.

So i guess if we can get Travis to build podman containers with Alma, you will be able to support RHEL / rocky / Alma in one go and also get away from the licensing issues wrt RHEL.

RHEL anyway offers 20 or so licenses with developer subscription in case you should want one. That prompts a doubt - how does docket-openresty test these images that are build ?

Please let me know if i can help in anyway - I do not have experience with Travis or podman (yet) but plan to get there at-least wrt podman since we have to support RHEL / Alma.