feat(ETHOS-36876): Add new Ubuntu 22.04, Replace nginx installation, Add njs module (ubuntu only) #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changed?
Major Changes
docker-base:5.0.1-ubuntu-20.04
) to Ubuntu 22.04 (docker-base:5.1.0-ubuntu-22.04
). Will eventually make this the defaultppa:ondrej/nginx
andsoftware-properties-common
curl
,gnupg2
if installedscripts/install_nginx.sh
, from standard nginx install: http://nginx.org/en/linux_packages.html#Ubuntuscripts/install_njs.sh
to installnginx-module-njs
module. See ETHOS-36876 @kmashint - https://nginx.org/en/docs/njs/scripts/cleanup.sh
to purge unnecessary packages in final imageSERVER_ENABLE_NGX_HTTP_JS
. If set totrue
, it will enable i.e.load_module
the nginx njs moduleBug Fixes
duplicate extension
warning due to grep-x
not matching any previous entries. Sample errorDoc Changes
docs/
docs/
when testing HTTPS usage locallyCI Changes
-ubuntu-22.04
tagOther Changes
Makefile
for common local dev operationsAdditional data
Nginx Package Versions
As of Jul 15, 2022, these are the versions that it builds with:
Steps to build locally
Steps to test locally
To test the
njs
module, I worked with @kmashint to create a simple test. The test assumes that you havedgoss
installed.Sample output:
Image Size comparison
Use
docker images
ordocker inspect
for thelinux/amd64
architecture: