Skip to content

Base image improvements - #162

Merged
openshift-merge-bot[bot] merged 8 commits into
openstack-k8s-operators:mainfrom
yazug:base_sync_two_stage
Sep 2, 2026
Merged

Base image improvements#162
openshift-merge-bot[bot] merged 8 commits into
openstack-k8s-operators:mainfrom
yazug:base_sync_two_stage

Conversation

@yazug

@yazug yazug commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Two stage build with wheel
arg for UBI_BASE_IMAGE
comments for 2 skip in downstream commands
add tzdata and ensure /etc/localtime is set

Making note that copying in the rpms.repo and
openssl-fips-provider-so workaround are upstream only
moved pbr to pythonbuilddep
added necessary compilers to build dumb-init which is C based
added builddeps with necessary rpms for building
build necessary wheels in the builder stage and copy and install them

Rotation to support downstream hermetic builds
dumb-init is a C based project so it should be
in a builder image not just built in the main image and installed
@yazug
yazug force-pushed the base_sync_two_stage branch from e99b3e8 to d60388f Compare September 2, 2026 00:09
@rebtoor

rebtoor commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@@ -1,3 +1,2 @@
crudini
pbr

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most services require pbr for runtime.
It's mostly due to the use of pbr.version.

I think that most of the service images install pbr HOWEVER, I am not sure of this, and removing pbr from pythondeps could break a few services

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is actually used as a runtime. it can get added back in. If it is actually a requirement it will get installed no matter what. but I'll add it back in

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, update put it back in

Comment thread containers/base/Containerfile Outdated
yazug and others added 2 commits September 2, 2026 08:54
Co-authored-by: Emma Foley <elfiesmelfie@users.noreply.github.com>

@elfiesmelfie elfiesmelfie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Sep 2, 2026
@fmount

fmount commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

/approve
/lgtm

@openshift-ci

openshift-ci Bot commented Sep 2, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label Sep 2, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 144cedb into openstack-k8s-operators:main Sep 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants