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

installs python 3.9 from minimal base image into builder base #1210

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

jaxesn
Copy link
Member

@jaxesn jaxesn commented Oct 13, 2023

Issue #, if available:

Description of changes:

For the later versions of ansible, which is only used by our image-builder builds, we need a python 3.9 version. AL2 does not ship a 3.9 version by default. When we originally built the emissary image, which also needed 3.9, we built a al2 based minimal python image building python from source.

This PR copies python 3.9 from the minimal image into the builder base instead of using 3.8 from yum. This shouldnt affect any of the builds since we are pretty sure the only build relying on python3 is the image-builder builds.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

unlink /ansible/usr/bin/python && \
rm -rf /var/lib/

FROM ${BUILDER_IMAGE} as ansible-al23
Copy link
Member Author

Choose a reason for hiding this comment

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

for the al23 base image continue doing what we were since that version includes python 3.9

endef

define NEWLINE


endef

REALPATH=TZ=utc $(shell if [ "$$(uname -s)" = "Darwin" ] && command -v grealpath &> /dev/null; then echo grealpath; else echo realpath; fi)
Copy link
Member Author

Choose a reason for hiding this comment

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

fix to run on mac

@jaxesn jaxesn force-pushed the jgw/builder-base-3.9 branch 3 times, most recently from 12713c1 to d4b7972 Compare October 13, 2023 22:11
@jaxesn
Copy link
Member Author

jaxesn commented Oct 13, 2023

/hold

@jaxesn jaxesn force-pushed the jgw/builder-base-3.9 branch from d4b7972 to 1b10f86 Compare October 13, 2023 22:31
@jaxesn
Copy link
Member Author

jaxesn commented Oct 16, 2023

/unhold

@jaxesn
Copy link
Member Author

jaxesn commented Oct 16, 2023

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaxesn

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

The pull request process is described here

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

@eks-distro-bot eks-distro-bot merged commit a40261c into aws:main Oct 16, 2023
2 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.

3 participants