Skip to content

python39 base image for lighter image build pipeline job #266

@gpplo

Description

@gpplo

Hi Helene,
I managed to build the Grafana Bridge image (v8.0.2) on one of my bare metal servers but the same operation fails inside our GitLab runner on K8s. This latest step is needed to integrate the build operation in our build/deploy pipeline on k8s, where cpu/mem/disk space are limited.
The build operation breaks at this point

“””
STEP 56: RUN yum install -y python39 python3-pip
158Updating Subscription Management repositories.
159Unable to read consumer identity
160This system is not registered with an entitlement server. You can use subscription-manager to register.
161Fatal glibc error: allocatestack.c:192 (advise_stack_range): assertion failed: freesize < size
162subprocess exited on aborted
163subprocess exited with status 1
164error building at STEP "RUN yum install -y python39 python3-pip": exit status 1
“””

Which is actually a heavy step.
I have worked around this doing the following:

  • changing the base image from ubi:9.5-1732804088 to python-39:9.5-1734610342
  • commenting out (at this point unnecessary) “RUN yum install -y python39 python3-pip”

Is this an enhancement you could consider integrating upstream?
Maybe other users would benefit from this.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions