How to build awx as docker image

Hello

In relation to https://groups.google.com/d/msg/awx-project/qc3leFTQjfI/-balnkYJBgAJ - I’m wanting to build a custom docker image, that will have the Openshift python package.
This is so I can use the K8s inventory.

Does anyone have any docs, or guidence, on how to build the awx docker image?

Thanks

You just need to override the image we have by modifying the dockerfile

after you do that you can follow the instructions here https://github.com/ansible/awx/blob/devel/INSTALL.md#official-vs-building-images

Hi Matthew

That is where I get a bit confused. There isnt a dockerfile. It looks like dockerfile gets generated using jinja. Its not clear how I generate this file - and if I need to run make to then build it.
But there are also two images - awx_web and awx_task. And its not clear which one I need to modify.

As you can see: https://github.com/ansible/awx/blob/devel/installer/roles/image_build/templates/Dockerfile.task.j2

is based on

https://github.com/ansible/awx/blob/devel/installer/roles/image_build/templates/Dockerfile.j2

from the instructions in the docs and the inventory file:

https://github.com/ansible/awx/blob/devel/installer/inventory#L5-L8

just comment out that line and it will trigger a local image build (rather than pulling the images from dockerhub).