Creating Execution Environment for AWX

,

Hi !

I’m currently trying to create a EE for AWX and I’m experiencing some issues.
i’ve download awx-ee environement for base (https://github.com/ansible/awx-ee)

And I’vejust added in requirements.txt the netaddr module I need.

---------------------------------requirement.txt-------------------------------------
git+https://github.com/ansible/ansible-builder.git@devel#egg=ansible-builder
ipaddr
netaddr

Sorry for double post but i’ve checked if netaddr is installed with pip list command obviously.

Hey there, since you’re doing a manual build using docker my first guess is that it could be a versioning issue to me.
What versions of python, netaddr, and ipaddr you have?
Cheers,
Beccah

Hi, first, thanks for you’r reply.
I found that in my execution-environment.yml file, I forgot to set as dependecy my requirement.txt file…

So i added this line :
-----------------------------------------execution-environment.yml------------------------------------------------

Here is an example building from a base Ubuntu image.

https://github.com/acelinkit/ansibletools/blob/main/Dockerfile

Hi guys !

First thanks to you two for answering me.
I’ve changed my building method by using ansible-builder.

Then I push to quay.io with podman push and it works !

Here the steps I followed :

  1. Clone git repository of awx-ee locally.
  2. Changed requirements (.txt, ;yml and bindep for packages)
  3. Comment out EE_BASE_IMAGE: ‘quay.io/ansible/ansible-runner:latest in execution-environment.yml file because ansible-runner refuse it. (why ? I don’t know…)
  4. Launch build with ansible-builder build -t quay.io/a_pizzetta/hoplacloud-awx-ee2 --build-arg EE_BASE_IMAGE=quay.io/ansible/ansible-runner:latest -v3
  5. Push to quay.io with podman push quay.io/a_pizzetta/hoplacloud-awx-ee2
  6. Add Execution Environment in my AWX interface with link quay.io/a_pizzetta/hoplacloud-awx-ee2:latest

And it now works perfectly !

Best regards !
Arnaud PIZZETTA

This person is very saver, i love u so much bro its work for me !