【问题标题】:building image with Ansible-builder and need to install python36 and python3-ldap使用 Ansible-builder 构建镜像,需要安装 python36 和 python3-ldap
【发布时间】:2023-02-14 19:41:32
【问题描述】:

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

有 Ansible-builder 经验的人可以提供指导吗? 下面是我的 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


    【解决方案1】:

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

    感谢所有看过的人!

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题,我尝试过以不同的方式在 bindep.txt 中添加 python36 依赖项,但一点运气也没有。生成的图像 - 如果经过检查 - 显然不包含 python3.6 要求,因此看起来有问题。 我试过了: python3.6 蟒蛇36 蟒蛇==3.6 python3.6-dev 和许多其他人。

      有什么线索吗?提前致谢

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-09-22
        • 1970-01-01
        • 2019-09-14
        • 1970-01-01
        • 2018-08-14
        相关资源
        最近更新 更多