fixing strixhalo builds.
Some checks failed
Build and Push Images / build (Dockerfile.ray-worker-intel, intel) (push) Has been cancelled
Build and Push Images / build (Dockerfile.ray-worker-nvidia, nvidia) (push) Has been cancelled
Build and Push Images / build (Dockerfile.ray-worker-rdna2, rdna2) (push) Has been cancelled
Build and Push Images / build (Dockerfile.ray-worker-strixhalo, strixhalo) (push) Has been cancelled
Build and Push Images / Release (push) Has been cancelled
Build and Push Images / Notify (push) Has been cancelled
Build and Push Images / determine-version (push) Has been cancelled
Some checks failed
Build and Push Images / build (Dockerfile.ray-worker-intel, intel) (push) Has been cancelled
Build and Push Images / build (Dockerfile.ray-worker-nvidia, nvidia) (push) Has been cancelled
Build and Push Images / build (Dockerfile.ray-worker-rdna2, rdna2) (push) Has been cancelled
Build and Push Images / build (Dockerfile.ray-worker-strixhalo, strixhalo) (push) Has been cancelled
Build and Push Images / Release (push) Has been cancelled
Build and Push Images / Notify (push) Has been cancelled
Build and Push Images / determine-version (push) Has been cancelled
This commit is contained in:
@@ -50,8 +50,14 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|||||||
kmod \
|
kmod \
|
||||||
libopenmpi3 \
|
libopenmpi3 \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& groupadd -g 100 -o users 2>/dev/null || true \
|
&& (groupadd -g 100 -o users 2>/dev/null || true) \
|
||||||
&& useradd -m -u 1000 -g 100 -s /bin/bash ray \
|
# Vendor image may already have UID 1000 — rename it to ray, or create ray
|
||||||
|
&& existing=$(getent passwd 1000 | cut -d: -f1) \
|
||||||
|
&& if [ -n "$existing" ] && [ "$existing" != "ray" ]; then \
|
||||||
|
usermod -l ray -d /home/ray -m -s /bin/bash "$existing"; \
|
||||||
|
elif [ -z "$existing" ]; then \
|
||||||
|
useradd -m -u 1000 -g 100 -s /bin/bash ray; \
|
||||||
|
fi \
|
||||||
&& mkdir -p /home/ray/.aiter && chown 1000:100 /home/ray/.aiter
|
&& mkdir -p /home/ray/.aiter && chown 1000:100 /home/ray/.aiter
|
||||||
|
|
||||||
# Install uv for fast Python package management (ADR-0014)
|
# Install uv for fast Python package management (ADR-0014)
|
||||||
|
|||||||
Reference in New Issue
Block a user