LuisGon
Mission Specialist
Mission Specialist
  • 91 Views

lab review-cr3 : ansible-builder create : Error with requirements.txt

I am running into a problem with the Comprehensive Review 3 ( review-cr3 )

The specific error is DefinitionError: Dependency file requirements.txt does not exist

There is the requirements.yml ... Here's what I tried.snap.png

Ideas?

3 Replies
khyuma04
Mission Specialist
Mission Specialist
  • 82 Views

It is asking for the bindep.txt file - have you created this and is it in the same location you are running ansible-builder from?

if it is not required then remove it from the execution-environment.yml file

LuisGon
Mission Specialist
Mission Specialist
  • 60 Views

The lab and solution in the training materials do NOT specify the creation of the bindep.txt file. Even if I created it, I can guess at the contents... but there aren't any details in the DO374 pdf.

0 Kudos
khyuma04
Mission Specialist
Mission Specialist
  • 8 Views

Then you need to remove it from the "dependencies" section in the execution-environment.yml file. Looking at the lab this file should have the following contents:

---
version: 1

build_arg_defaults:
EE_BASE_IMAGE: hub.lab.example.com/ee-minimal-rhel8:latest
EE_BUILDER_IMAGE: hub.lab.example.com/ansible-builder-rhel8:latest

ansible_config: ansible.cfg

dependencies:
galaxy: requirements.yml

 

0 Kudos
Join the discussion
You must log in to join this conversation.