From 1ea8cacb5e3ee78a3ce7a5a387546aee387f8bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Mej=C3=ADa?= Date: Thu, 6 Aug 2026 18:46:12 +0200 Subject: [PATCH] AVRO-4232: [Build] Install uv in the Docker build image 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 2124b6b1b30..29ca8abbee7 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 ; \