mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-20 19:19:56 +00:00
fix(ci): isolate profiling container home dirs
This commit is contained in:
@@ -100,9 +100,12 @@ jobs:
|
|||||||
docker run --rm --gpus all \
|
docker run --rm --gpus all \
|
||||||
--user "$(id -u):$(id -g)" \
|
--user "$(id -u):$(id -g)" \
|
||||||
--shm-size=16g \
|
--shm-size=16g \
|
||||||
|
-e HOME=/tmp/lerobot-home \
|
||||||
-e HF_HOME=/tmp/hf \
|
-e HF_HOME=/tmp/hf \
|
||||||
-e UV_PROJECT_ENVIRONMENT=/tmp/lerobot-venv \
|
-e UV_PROJECT_ENVIRONMENT=/tmp/lerobot-venv \
|
||||||
-e UV_CACHE_DIR=/tmp/uv-cache \
|
-e UV_CACHE_DIR=/tmp/uv-cache \
|
||||||
|
-e UV_PYTHON_PREFERENCE=only-system \
|
||||||
|
-e XDG_DATA_HOME=/tmp/xdg-data \
|
||||||
-e XDG_CACHE_HOME=/tmp/xdg-cache \
|
-e XDG_CACHE_HOME=/tmp/xdg-cache \
|
||||||
-e HOST_GIT_COMMIT="${{ github.event.pull_request.head.sha || github.event.inputs.git_commit || github.sha }}" \
|
-e HOST_GIT_COMMIT="${{ github.event.pull_request.head.sha || github.event.inputs.git_commit || github.sha }}" \
|
||||||
-e HF_USER_TOKEN="${HF_USER_TOKEN}" \
|
-e HF_USER_TOKEN="${HF_USER_TOKEN}" \
|
||||||
@@ -114,8 +117,9 @@ jobs:
|
|||||||
-v "${GITHUB_WORKSPACE}:/workspace" \
|
-v "${GITHUB_WORKSPACE}:/workspace" \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
huggingface/lerobot-gpu:latest \
|
huggingface/lerobot-gpu:latest \
|
||||||
bash -lc '
|
bash -c '
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
mkdir -p "${HOME}" "${HF_HOME}" "${UV_CACHE_DIR}" "${XDG_CACHE_HOME}" "${XDG_DATA_HOME}"
|
||||||
rm -rf /tmp/lerobot-src
|
rm -rf /tmp/lerobot-src
|
||||||
cp -a /workspace/. /tmp/lerobot-src
|
cp -a /workspace/. /tmp/lerobot-src
|
||||||
cd /tmp/lerobot-src
|
cd /tmp/lerobot-src
|
||||||
|
|||||||
Reference in New Issue
Block a user