nginx-container icon indicating copy to clipboard operation
nginx-container copied to clipboard

Add nginx micro image

Open hhorak opened this issue 3 years ago • 21 comments

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.

hhorak avatar Mar 29 '22 13:03 hhorak

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

hhorak avatar May 17 '22 07:05 hhorak

[test]

hhorak avatar Jun 14 '22 20:06 hhorak

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.

hhorak avatar Jun 14 '22 20:06 hhorak

[test]

hhorak avatar Jun 15 '22 05:06 hhorak

[test]

hhorak avatar Jun 15 '22 06:06 hhorak

[test]

hhorak avatar Jun 30 '22 04:06 hhorak

[test]

hhorak avatar Jun 30 '22 15:06 hhorak

[test]

hhorak avatar Jun 30 '22 15:06 hhorak

[test]

hhorak avatar Jun 30 '22 16:06 hhorak

[test]

hhorak avatar Jun 30 '22 17:06 hhorak

[test]

hhorak avatar Jun 30 '22 18:06 hhorak

[test]

hhorak avatar Jun 30 '22 18:06 hhorak

[test]

hhorak avatar Jun 30 '22 19:06 hhorak

The RHEL9 has some issues with subscription (being solved). Otherwise, it should be ready to review.

hhorak avatar Jul 01 '22 07:07 hhorak

About the naming -- a quick conversation with @pkubatrh lead to the strategy:

  • use -minimal suffix for images that build on -minimal parent and have microdnf and rpm
  • use -micro suffix for images that are build similarly as the -micro base image, and do not have any *dnf nor rpm, no matter whether they use -micro as a parent or not

That means, that the naming might likely change back to -micro.

hhorak avatar Jul 01 '22 08:07 hhorak

[test]

hhorak avatar Aug 16 '22 15:08 hhorak

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.

hhorak avatar Aug 18 '22 08:08 hhorak

[test]

hhorak avatar Aug 18 '22 08:08 hhorak

[test]

hhorak avatar Aug 22 '22 15:08 hhorak

[test-openshift]

hhorak avatar Aug 23 '22 06:08 hhorak

[test]

hhorak avatar Aug 23 '22 07:08 hhorak

Let's test separate versions.

[test-all]

phracek avatar Sep 07 '22 07:09 phracek

Rebased and 1.20/Dockerfile.rhel9 fixed

hhorak avatar Sep 21 '22 10:09 hhorak

[test-all]

hhorak avatar Sep 21 '22 10:09 hhorak

[test-all]

hhorak avatar Sep 21 '22 10:09 hhorak

[test-all]

hhorak avatar Oct 05 '22 08:10 hhorak

[test-all]

hhorak avatar Oct 05 '22 18:10 hhorak

[test-all]

hhorak avatar Oct 10 '22 07:10 hhorak

[test-all]

hhorak avatar Oct 11 '22 12:10 hhorak

In order to test micro/minimal image please file another PR...

Thanks for the point, added.

hhorak avatar Oct 11 '22 18:10 hhorak