-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove PYTHON_VERSION from Docker image building #31483
Conversation
As it's no longer needed now that we don't have Agent 6 on main
&& if [ "$PYTHON_VERSION" = "3" ]; then \ | ||
rm -rf \ | ||
opt/datadog-agent/embedded/bin/pip2* \ | ||
opt/datadog-agent/embedded/bin/python2* \ | ||
opt/datadog-agent/embedded/include/python2* \ | ||
opt/datadog-agent/embedded/lib/*python2* || true ;\ | ||
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.
I assume we no longer need to run this command because we no longer install Python, right?
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.
LGTM!
/merge |
Devflow running:
|
What does this PR do?
Clean up references to PYTHON_VERSION when building Agent images.
Motivation
Cleanup, as it's no longer needed now that we don't have Agent 6 on main.
Describe how to test/QA your changes
Done with:
python-config
link was dropped, see below).ddev env run -a registry.ddbuild.io/ci/datadog-agent/agent:v49956016-d72dbc8d-7-amd64
, etc.)Possible Drawbacks / Trade-offs
Additional Notes
The only difference in the files included in the image is that we lose the link of
python-config
->python3-config
. This should generally not be needed (more so given that a default python install won't attempt to create it).