This is an automated email from the ASF dual-hosted git repository.
RyanSkraba pushed a commit to branch branch-1.12
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.12 by this push:
new d5a84a3789 AVRO-4232: [Build] Install uv in the Docker build image
(#3925)
d5a84a3789 is described below
commit d5a84a3789e1c82c9cbe9e80ed8acc51a3eb33ee
Author: Ismaël Mejía <[email protected]>
AuthorDate: Thu Aug 6 19:20:32 2026 +0200
AVRO-4232: [Build] Install uv in the Docker build image (#3925)
The lang/py build.sh now relies on uv, but the Docker test image did not
install it, breaking Python builds/tests in the container.
Install the pinned uv 0.10.4 (matching main branch) into $HOME/.local/bin
and add that directory to PATH alongside cargo.
---
share/docker/Dockerfile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/share/docker/Dockerfile b/share/docker/Dockerfile
index 2124b6b1b3..29ca8abbee 100644
--- a/share/docker/Dockerfile
+++ b/share/docker/Dockerfile
@@ -195,6 +195,11 @@ RUN case "${BUILDARCH:?}" in \
RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install tox zstandard
+# Install uv (Python package/build manager used by lang/py/build.sh).
+# Pinned version, installed to $HOME/.local/bin (/root/.local/bin at build
+# time). The PATH is set on the Rust/cargo line below, matching main branch.
+RUN curl -LsSf https://astral.sh/uv/0.10.4/install.sh | sh
+
# Install Ruby
RUN apt-get -qqy install ruby-full \
&& apt-get -qqy clean
@@ -207,7 +212,7 @@ RUN gem install bundler --no-document && \
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
--default-toolchain 1.73.0
-ENV PATH $PATH:/root/.cargo/bin/
+ENV PATH=$PATH:/root/.cargo/bin/:/root/.local/bin
# Install .NET SDK
RUN cd /opt ; \