Upgrade nginx from 1.14 to 1.18 in awx_web container.

Hi All,

My containers are running on nginx 1.14 which is outdated and want to upgrade to 1.18, but nginx is pre installed in a container and created a docker image using the container. And we are using that image for the awx.

Can someone suggest the best way to upgrade the nginx.

Thanks,
Hemanth.

Honestly, I don’t see a reason to update nginx until official awx image is published with upgraded version.
That being said, if you really would like to test things out, and do want to upgrade nginx on your own, the way to go, for me at least, would be the following:

Create a new Dockerfile from the latest awx image:
https://hub.docker.com/layers/ansible/awx/latest/images/sha256-24b8f551e99a10a9c943966cf540b248c85f7c3daf4b24a3b0e7123affbca389?context=explore

Add additional layers that would import yum nginx repo (OS is CentOS 8.2), perform the upgrade, and then save the Dockerfile in the same directory you stored your docker-compose.yml when installing awx.
Edit docker-compose.yml, use your own image instead of public one for awx_web and awx_task, and rebuild the containers using docker-compose.

However, ensure that your nginx configuration is valid for the new nginx version (it will be stored in the same directory as docker-compose), and test things out before moving on.

All tower objects should remain (inventories, credentials, jobs, projects, templates, settings, ect…), as they are stored in postgres, and postgres data is mounted in volume persistently on host, so restarting containers will not erase your data.

If unsure where your docker-compose is stored, check your installation inventory file. By default it’s set to ~/.awx/awxcompose/

Dana utorak, 15. rujna 2020. u 22:49:58 UTC+2 korisnik heman...@gmail.com napisao je:

Ok, I went ahead and tested this. It’s pretty straightforward, and works like a charm.

Dana ponedjeljak, 21. rujna 2020. u 11:40:24 UTC+2 korisnik Hrvoje Gašpar napisao je: