-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
builder-base/Dockerfile
Outdated
unlink /ansible/usr/bin/python && \ | ||
rm -rf /var/lib/ | ||
|
||
FROM ${BUILDER_IMAGE} as ansible-al23 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
12713c1
to
d4b7972
Compare
/hold |
d4b7972
to
1b10f86
Compare
/unhold |
/approve |
[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 |
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.