Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dataflow/custom-containers/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ubuntu:focal
FROM ubuntu:noble
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

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:

  1. In dataflow/custom-containers/ubuntu/requirements.txt, upgrade apache-beam to a version that supports Python 3.12 (e.g., 2.56.0 or newer).
  2. 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


WORKDIR /pipeline

Expand Down