aglinxinyuan commented on code in PR #9655:
URL: https://github.com/apache/texera/pull/9655#discussion_r4675623459
##########
bin/dockerfiles/computing-unit-master.dockerfile:
##########
@@ -84,7 +84,9 @@ RUN python3 bin/licensing/concat_license_binary.py
amber/LICENSE-binary-combined
amber/LICENSE-binary-java \
amber/LICENSE-binary-python
-FROM
docker.io/library/eclipse-temurin:17-jdk-jammy@sha256:60fcdd4a85c94a23ef86d0d55867c6a8dbc4f7c3efc8286e259956c3ea4ef08c
AS runtime
+# Ubuntu 24.04 rather than the 22.04 of the other images: Python workers run
+# this image's python3, and 24.04's is 3.12, a version pyamber's CI tests.
+FROM
docker.io/library/eclipse-temurin:17-jdk-noble@sha256:53686f59c44e08ac3310d39ef9c3e3d3bb03370366d9c45802229c86fa2d8369
AS runtime
Review Comment:
Added a **This also fixes the images' LICENSE** paragraph to the
description, plus the 3.10 vs 3.12 resolution diff under testing; that diff
also turned up `tomli` (from huggingface-hub ≥ 1.32), which
`LICENSE-binary-python` also omits, so the paragraph names all three.
_🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
##########
bin/dockerfiles/computing-unit-master.dockerfile:
##########
@@ -96,9 +98,15 @@ ARG PACKAGE_SNAPSHOT
RUN --mount=type=bind,source=bin/dockerfiles/snapshot,target=/snapshot \
bash /snapshot/install.sh apt python3-pip python3-dev python3-venv
libpq-dev
-# Install Python packages
+# Install Python packages into a venv, as 24.04's python3 is externally managed
+# (PEP 668). Its bin/ leads PATH, so the venv's is the `python3` that runs
+# Python workers and creates PVEs when udf.python.path is unset. It is created
+# in this layer so the pip upgrade removes the pip it is seeded with, whose
+# .pyc files are not byte-compiled reproducibly.
Review Comment:
Applied the suggestion in 84cebc76d3.
_🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
##########
bin/dockerfiles/computing-unit-worker.dockerfile:
##########
@@ -94,11 +96,17 @@ COPY --from=build /texera/amber/operator-requirements.txt
/tmp/operator-requirem
# Install Python runtime dependencies
ARG PACKAGE_SNAPSHOT
RUN --mount=type=bind,source=bin/dockerfiles/snapshot,target=/snapshot \
- bash /snapshot/install.sh apt python3-pip python3-dev libpq-dev
-
-# Install Python packages
+ bash /snapshot/install.sh apt python3-pip python3-dev python3-venv
libpq-dev
+
+# Install Python packages into a venv, as 24.04's python3 is externally managed
+# (PEP 668). Its bin/ leads PATH, so the venv's is the `python3` that runs
+# Python workers and creates PVEs when udf.python.path is unset. It is created
+# in this layer so the pip upgrade removes the pip it is seeded with, whose
+# .pyc files are not byte-compiled reproducibly.
Review Comment:
Applied the same wording in 84cebc76d3.
_🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]