Skip to content

Commit 25a384e

Browse files
committed
ARM fix
1 parent 453f425 commit 25a384e

File tree

19 files changed

+152
-0
lines changed

19 files changed

+152
-0
lines changed

services/agent/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ COPY --from=uv_build /uv /uvx /bin/
8787
# packages may be moved to production image easily by copying the venv
8888
RUN uv venv "${VIRTUAL_ENV}"
8989

90+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
91+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
92+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
93+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
94+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
95+
export UV_CONCURRENT_INSTALLS=1; \
96+
fi
97+
9098
RUN --mount=type=cache,target=/root/.cache/uv \
9199
uv pip install --upgrade \
92100
wheel \

services/api-server/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ COPY --from=uv_build /uv /uvx /bin/
8080
# packages may be moved to production image easily by copying the venv
8181
RUN uv venv "${VIRTUAL_ENV}"
8282

83+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
84+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
85+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
86+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
87+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
88+
export UV_CONCURRENT_INSTALLS=1; \
89+
fi
90+
8391
RUN --mount=type=cache,target=/root/.cache/uv \
8492
uv pip install --upgrade \
8593
wheel \

services/autoscaling/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ COPY --from=uv_build /uv /uvx /bin/
100100
# packages may be moved to production image easily by copying the venv
101101
RUN uv venv "${VIRTUAL_ENV}"
102102

103+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
104+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
105+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
106+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
107+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
108+
export UV_CONCURRENT_INSTALLS=1; \
109+
fi
110+
103111
RUN --mount=type=cache,target=/root/.cache/uv \
104112
uv pip install --upgrade \
105113
wheel \

services/catalog/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181
# packages may be moved to production image easily by copying the venv
8282
RUN uv venv "${VIRTUAL_ENV}"
8383

84+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
89+
export UV_CONCURRENT_INSTALLS=1; \
90+
fi
91+
8492
RUN --mount=type=cache,target=/root/.cache/uv \
8593
uv pip install --upgrade \
8694
wheel \

services/clusters-keeper/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ COPY --from=uv_build /uv /uvx /bin/
9999
# packages may be moved to production image easily by copying the venv
100100
RUN uv venv "${VIRTUAL_ENV}"
101101

102+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
103+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
104+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
105+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
106+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
107+
export UV_CONCURRENT_INSTALLS=1; \
108+
fi
109+
102110
RUN --mount=type=cache,target=/root/.cache/uv \
103111
uv pip install --upgrade \
104112
wheel \

services/dask-sidecar/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ COPY --from=uv_build /uv /uvx /bin/
9090
# NOTE: python virtualenv is used here such that installed packages may be moved to production image easily by copying the venv
9191
RUN uv venv "${VIRTUAL_ENV}"
9292

93+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
94+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
95+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
96+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
97+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
98+
export UV_CONCURRENT_INSTALLS=1; \
99+
fi
100+
93101
RUN --mount=type=cache,target=/root/.cache/uv \
94102
uv pip install --upgrade \
95103
wheel \

services/datcore-adapter/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181
# packages may be moved to production image easily by copying the venv
8282
RUN uv venv "${VIRTUAL_ENV}"
8383

84+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
89+
export UV_CONCURRENT_INSTALLS=1; \
90+
fi
91+
8492
RUN --mount=type=cache,target=/root/.cache/uv \
8593
uv pip install --upgrade \
8694
wheel \

services/director-v2/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181
# packages may be moved to production image easily by copying the venv
8282
RUN uv venv "${VIRTUAL_ENV}"
8383

84+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
89+
export UV_CONCURRENT_INSTALLS=1; \
90+
fi
91+
8492
RUN --mount=type=cache,target=/root/.cache/uv \
8593
uv pip install --upgrade \
8694
wheel \

services/director/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ COPY --from=uv_build /uv /uvx /bin/
8181
# packages may be moved to production image easily by copying the venv
8282
RUN uv venv "${VIRTUAL_ENV}"
8383

84+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
85+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
86+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
87+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
88+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
89+
export UV_CONCURRENT_INSTALLS=1; \
90+
fi
91+
8492
RUN --mount=type=cache,target=/root/.cache/uv \
8593
uv pip install --upgrade \
8694
wheel \

services/dynamic-scheduler/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ COPY --from=uv_build /uv /uvx /bin/
7878
# packages may be moved to production image easily by copying the venv
7979
RUN uv venv "${VIRTUAL_ENV}"
8080

81+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
82+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
83+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
84+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
85+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
86+
export UV_CONCURRENT_INSTALLS=1; \
87+
fi
88+
8189
RUN --mount=type=cache,target=/root/.cache/uv \
8290
uv pip install --upgrade \
8391
wheel \

0 commit comments

Comments
 (0)