ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
139 stars 162 forks source link

Switch to `centos:stream9-minimal` #246

Open austlane opened 6 months ago

austlane commented 6 months ago

This PR switches the base image to centos:stream9-minimal which uses microdnf and does not bundle Python3.9, allowing us to ship a final image without Python 3.9 installed at all.

Also removes subversion, as it hard-depends upon python3.9, no love lost.

This is another take on https://github.com/ansible/awx-ee/pull/207 and https://github.com/ansible/awx-ee/pull/244 EDIT: Rebased after https://github.com/ansible/awx-ee/pull/207 was merged.


Currently this PR relies upon https://github.com/ansible/ansible-builder/pull/664 which enables dependency exclusions, allowing overrides of bindep.txt dependencies directly inherited from collections.

This PR will be marked as a Draft until https://github.com/ansible/ansible-builder/pull/664 is merged.

EDIT: https://github.com/ansible/ansible-builder/pull/664 has been merged. This PR is ready for review.

TheRealHaoLiu commented 6 months ago

@austlane this is awesome, is this PR ready?

austlane commented 6 months ago

@austlane this is awesome, is this PR ready?

This PR works as-is 👍 But I'd imagine it shouldn't be merged until ansible/ansible-builder#664 is merged into ansible-builder, depending directly on a PR seems hacky. I'll rebase when it's merged and remove my changes to requirements.txt.

austlane commented 3 months ago

I'll be rebasing this PR now that https://github.com/ansible/awx-ee/pull/207 has been merged 👍

I still think this approach is worth consideration to keep the EE light / avoid shipping two Pythons.

EDIT: Rebased :)