Update ubuntu Docker tag to v24#14017
Update ubuntu Docker tag to v24#14017renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the base Docker image for custom Dataflow containers from ubuntu:focal to ubuntu:noble. A critical issue was identified where this upgrade will cause the Docker build to fail due to an incompatibility between the new default Python 3.12 and the existing apache-beam version 2.40.0. To resolve this, the reviewer suggests updating apache-beam to a compatible version (e.g., 2.56.0+) in requirements.txt and updating the base Beam SDK image reference in the Dockerfile.
| # limitations under the License. | ||
|
|
||
| FROM ubuntu:focal | ||
| FROM ubuntu:noble |
There was a problem hiding this comment.
Upgrading to ubuntu:noble (Ubuntu 24.04) changes the default system Python to version 3.12. This will cause the Docker build to fail because the version of apache-beam specified in requirements.txt (2.40.0) does not support Python 3.12.
To resolve this, you'll need to update the Apache Beam dependencies to versions compatible with Python 3.12. This requires changes in other files:
- In
dataflow/custom-containers/ubuntu/requirements.txt, upgradeapache-beamto a version that supports Python 3.12 (e.g.,2.56.0or newer). - In this
Dockerfile, update the base Beam SDK image on line 20 to match the new Python and Beam versions. For example:COPY --from=apache/beam_python3.12_sdk:2.56.0 /opt/apache/beam /opt/apache/beam
This PR contains the following updates:
focal→nobleConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.