Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EE fails when using debian or ubuntu base image #636

Closed
hrv-cta opened this issue Dec 7, 2023 · 1 comment
Closed

EE fails when using debian or ubuntu base image #636

hrv-cta opened this issue Dec 7, 2023 · 1 comment

Comments

@hrv-cta
Copy link

hrv-cta commented Dec 7, 2023

Hello,

I'm trying to create an EE with ubuntu or debian base image, and every time it fails because it doesn't find the ensurepip module.
Below is my yml:

---
version: 3
dependencies:
  ansible_core:
    package_pip: ansible-core==2.15.6
  galaxy: requirements.yml
  python: requirements.txt
  ansible_runner:
    package_pip: ansible-runner
  # python_interpreter:
  #     package_system: "python311"
  #     python_path: "/usr/bin/python3.11"

images:
  base_image:
    # name: docker.io/redhat/ubi9:latest
    # name: quay.io/rockylinux/rockylinux:9
    # name: ubuntu:mantic
    name: debian:bookworm

# options:
#   package_manager_path: apt

additional_build_steps:
  prepend_base:
    - RUN apt update
    - RUN apt install -y python3

The error is:

#8 [base 4/7] RUN /usr/bin/python3 -m ensurepip
#8 0.229 /usr/bin/python3: No module named ensurepip
#8 ERROR: process "/bin/sh -c $PYCMD -m ensurepip" did not complete successfully: exit code: 1
------
 > [base 4/7] RUN /usr/bin/python3 -m ensurepip:
0.229 /usr/bin/python3: No module named ensurepip
------
Dockerfile:22
--------------------
  20 |     RUN apt update
  21 |     RUN apt install -y python3
  22 | >>> RUN $PYCMD -m ensurepip
  23 |     RUN $PYCMD -m pip install --no-cache-dir $ANSIBLE_INSTALL_REFS
  24 |     COPY _build/scripts/ /output/scripts/

Thanks!

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Dec 7, 2023
@Shrews
Copy link
Contributor

Shrews commented Dec 8, 2023

Not really a bug since builder is intentionally designed to work only with RHEL'ish images. There are plans, though, to consider allowing a wider range of distros. See #553.

@Shrews Shrews closed this as completed Dec 8, 2023
@Shrews Shrews removed the needs_triage New item that needs to be triaged label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants