nginx-container
nginx-container copied to clipboard
Add nginx micro image
This is a PoC so far, meant to be available in quay.io initially, but ready to review and merge. The change adds a new version with a focus to deliver a container image with much smaller footprint.
It's supposed to be as small as possible, especially focusing on minimizing RPM dependencies. At the end though, the image does not miss many features comparing to the original one -- one significant change is a missing non-essential modules (nginx-mod-stream and nginx-mod-http-perl). Installing those images would add additional 55 MB uncompressed data, thanks to other dependencies it brings together.
I've just learnt there is also some other attempt to make the nginx smaller, some WIP work visible at https://github.com/rexagod/base-ubi-nginx/tree/develop
[test]
The run_dockerfiles_test test is expected to fail, because it pulls in the remote github content that does not include 1.22-minimal symlink yet.
[test]
[test]
[test]
[test]
[test]
[test]
[test]
[test]
[test]
[test]
The RHEL9 has some issues with subscription (being solved). Otherwise, it should be ready to review.
About the naming -- a quick conversation with @pkubatrh lead to the strategy:
- use
-minimalsuffix for images that build on-minimalparent and havemicrodnfandrpm - use
-microsuffix for images that are build similarly as the-microbase image, and do not have any*dnfnorrpm, no matter whether they use-microas a parent or not
That means, that the naming might likely change back to -micro.
[test]
It's now renamed to micro instead of minimal, to match naming in the httpd container. The idea is to use -micro when we use the two-stage build, which results in no rpm/yum in the resulting image. In contrary, -minimal will be based on base-minimal image and include at least microdnf.
[test]
[test]
[test-openshift]
[test]
Let's test separate versions.
[test-all]
Rebased and 1.20/Dockerfile.rhel9 fixed
[test-all]
[test-all]
[test-all]
[test-all]
[test-all]
[test-all]
In order to test micro/minimal image please file another PR...
Thanks for the point, added.