Skip to content

Commit fad793e

Browse files
committed
Docker fix 2: use isaacsim python for install
pip install not working due to OS version requiring managed environment requiring apt install for system packages
1 parent c073c72 commit fad793e

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

docker/Dockerfile.isaaclab_arena

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ ENV TERM=xterm
3737
# Symlink isaac sim to IsaacLab
3838
RUN ln -s /isaac-sim/ ${WORKDIR}/submodules/IsaacLab/_isaac_sim
3939
# Install IsaacLab dependencies
40-
RUN for DIR in ${WORKDIR}/submodules/IsaacLab/source/isaaclab*/; do pip install --no-deps -e "$DIR"; done
40+
RUN for DIR in ${WORKDIR}/submodules/IsaacLab/source/isaaclab*/; do /isaac-sim/python.sh -m pip install --no-deps -e "$DIR"; done
4141
# Logs and other stuff appear under dist-packages per default, so this dir has to be writeable.
4242
RUN chmod 777 -R /isaac-sim/kit/
43+
# Make /isaac-sim directory traversable and readable by all users
44+
# This is needed when entrypoint switches to non-root user
45+
RUN chmod a+x /isaac-sim
4346
# NOTE(alexmillane, 2026-02-10): We started having issues with flatdict 4.0.1 installation
4447
# during IsaacLab install. We install here with build isolation which seems to fix the issue.
4548
RUN /isaac-sim/python.sh -m pip install flatdict==4.0.1 --no-build-isolation
@@ -49,7 +52,7 @@ RUN ${ISAACLAB_PATH}/isaaclab.sh -i
4952
# Patch for osqp in IsaacLab. Downgrade qpsolvers
5053
# TODO(alexmillane): Watch the thread here: https://nvidia.slack.com/archives/C06HLQ6CB41/p1764680205807019
5154
# and remove this thread when IsaacLab has a fix.
52-
RUN if python -c "import qpsolvers; print(qpsolvers.available_solvers)" | grep -q "osqp"; then \
55+
RUN if /isaac-sim/python.sh -c "import qpsolvers; print(qpsolvers.available_solvers)" | grep -q "osqp"; then \
5356
echo "OSQP is installed. You can remove this clause from the Arena dockerfile."; \
5457
else \
5558
echo "OSQP missing, installing... This is a patch for an Isaac Lab bug."; \
@@ -79,7 +82,7 @@ ENV LW_API_ENDPOINT="https://api-dev.lightwheel.net"
7982

8083
# HuggingFace for downloading datasets and models.
8184
# NOTE(alexmillane, 2025-10-28): For some reason the CLI has issues when installed in the IsaacSim version of python.
82-
RUN pip install huggingface-hub[cli]
85+
RUN pip install --break-system-packages huggingface-hub[cli]
8386
# Create alias for hf command to use the system-installed version
8487
RUN echo "alias hf='/usr/local/bin/hf'" >> /etc/bash.bashrc
8588

@@ -136,7 +139,7 @@ RUN echo "alias pytest='/isaac-sim/python.sh -m pytest'" >> /etc/bash.bashrc
136139
# It will pause waiting for the debugger to attach.
137140
# 3) Attach to the running container with VSCode using the "Attach to debugpy session"
138141
# configuration from the Run and Debug panel.
139-
RUN pip3 install debugpy
142+
RUN /isaac-sim/python.sh -m pip install debugpy
140143
RUN echo "alias debugpy='python -Xfrozen_modules=off -m debugpy --listen localhost:5678 --wait-for-client'" >> /etc/bash.bashrc
141144

142145
# Change prompt so it's obvious we're inside the arena container

docker/setup/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ userdel ubuntu || true
2121
useradd --no-log-init \
2222
--uid "$DOCKER_RUN_USER_ID" \
2323
--gid "$DOCKER_RUN_GROUP_NAME" \
24-
--groups sudo \
24+
--groups sudo,isaac-sim \
2525
--shell /bin/bash \
2626
$DOCKER_RUN_USER_NAME
2727
chown $DOCKER_RUN_USER_NAME:$DOCKER_RUN_GROUP_NAME /home/$DOCKER_RUN_USER_NAME

0 commit comments

Comments
 (0)