使用 Ansible-builder 构建镜像,需要安装 python36 和 python3-ldap

问题描述 投票:0回答:2

使用 Ansible-builder 构建映像,需要将 python36 和 python3-ldap 安装到映像中,但我不确定在哪里将 python36 和 python3-ldap 添加到requirements.txt或bindep.txt

有 Ansible 构建者经验的人可以提供指导吗? 下面是我的execution-enviroment.yml 文件

version: 1
build_arg_defaults:
  EE_BASE_IMAGE: 'privatehub/ee-minimal-rhel'
  EE_BUILDER_IMAGE: 'privatehub/ansible-builder-rhel'
dependencies:
  galaxy: requirements.yml
  python: requirements.txt
  system: bindep.txt
automation ansible
2个回答
0
投票

我想通了。 python 模块放置在requirements.txt 文件中,python36 系统文件放置在bindep.txt 文件中

感谢所有看过的人!


0
投票

您能否指定这两个文件的外观? 导致我无法创建图像,因为“错误:找不到满足 python36 要求的版本”

我想这也是你的问题.. 谢谢!

© www.soinside.com 2019 - 2024. All rights reserved.