
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 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.
Ideas?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 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