ansible-builder build failed

Hi, I’m tryng to build a custom image, this is my erro:
ansible-builder build --tag quay.io/andreaussi/my_first_ee_image:latest --context ./context --container-runtime docker
Running command:
docker build -f ./context/Dockerfile -t quay.io/andreaussi/my_first_ee_image:latest ./context
Running command:
docker run --rm -v /home/alenarduzzi/ansible-builder02/builder/lib/python3.7/site-packages/ansible_builder:/ansible_builder_mount:Z quay.io/andreaussi/my_first_ee_image:latest python3 /ansible_builder_mount/introspect.py
Running command:
docker build -f ./context/Dockerfile -t quay.io/andreaussi/my_first_ee_image:latest ./context
…showing last 20 lines of output…
—> dd015ca158ce
Step 19/23 : RUN mkdir -p /var/run/receptor
—> Using cache
—> 9dde3af74a23
Step 20/23 : ADD run.sh /run.sh
—> Using cache
—> fcdbb401c232
Step 21/23 : CMD /run.sh
—> Using cache
—> 881da2c2b828
Step 22/23 : USER 1000
—> Using cache
—> f31f0262eabf
Step 23/23 : RUN git lfs install
—> Running in 367e3cf8cd5f
git: ‘lfs’ is not a git command. See ‘git --help’.

How can I fix it?
Thank you

If I am not mistaken it is git-lfs?

Yes, git-lfs is installed

So why is it referring to hit: lfs instead of git-lfs. I would check your execution environment . yml to check it is set correctly

This is execution-environment.yml

Are these config files wrong?

I wrote a blog post yesterday about my journey with this and the issues that I found.

https://weiyentan.github.io/2021/creating-execution-environments/

In my post I notice I have this :

git-lfs [platform:rpm]

You have dpkg.

Good blog, thank you

I’ve dpkg because all my vm os are debian based.
If this parameter are os indipendent, i can try to chango to rpm

It has no bearing. The image of awx is going to rhel regardless. Once it is in the docker image it is irrelevant whether your host vm’s are debian or ubuntu or opensuse . ansible runner is in a image. For Ansible runner it looks like they are running redhat. Keep the bindep.txt to the include that for now and see what happens.

Hi I’ve used this bindep.txt
python38-devel [platform:rpm compile]
subversion [platform:rpm]
subversion [platform:dpkg]
git-lfs [platform:rpm]

Than I’ve edited context/Dockerfile and added RUN pip3 uninstall --yes ansible-runner && pip3 install ansible-runner==2.0.0a1

building image OK but running I’ve error:
Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py”, line 1397, in run res = receptor_job.run() File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py”, line 2957, in run return self._run_internal(receptor_ctl) File “/var/lib/awx/venv/awx/lib64/python3.8/site-packages/awx/main/tasks.py”, line 3008, in _run_internal raise RuntimeError(detail) RuntimeError: Pod Running

Can you please give the entire container file? This is the exact error I had and by following the example given it solved it

These are my files:
cat execution-environment.yml

OK which file did you use?

I’m tryng to run this:

No I mean did you run ansible builder or did you run dockerfile. And if was the latter which directory did you run it from?

What were the steps you ran to get your image

I’ve added this(see attached image)

(attachments)

Understood. So which file did you use to push your image. The one in context or the one ansible builder did?

I’ve execute this:
docker push quay.io/andreaussi/my_first_ee_image

In which directory?