Skip to content

Commit 226c026

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 7d353ca commit 226c026

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docker/Dockerfile.isaaclab_arena

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,20 @@ ENV TERM=xterm
3838
# Symlink isaac sim to IsaacLab
3939
RUN ln -s /isaac-sim/ ${WORKDIR}/submodules/IsaacLab/_isaac_sim
4040
# Install IsaacLab dependencies
41-
RUN for DIR in ${WORKDIR}/submodules/IsaacLab/source/isaaclab*/; do pip install --no-deps -e "$DIR"; done
41+
RUN for DIR in ${WORKDIR}/submodules/IsaacLab/source/isaaclab*/; do /isaac-sim/python.sh -m pip install --no-deps -e "$DIR"; done
4242
# Logs and other stuff appear under dist-packages per default, so this dir has to be writeable.
4343
RUN chmod 777 -R /isaac-sim/kit/
44+
# Make /isaac-sim directory traversable and readable by all users
45+
# This is needed when entrypoint switches to non-root user
46+
RUN chmod a+x /isaac-sim && \
47+
chmod -R a+rX /isaac-sim
4448
# Install isaaclab
4549
RUN ${ISAACLAB_PATH}/isaaclab.sh -i
4650

4751
# Patch for osqp in IsaacLab. Downgrade qpsolvers
4852
# TODO(alexmillane): Watch the thread here: https://nvidia.slack.com/archives/C06HLQ6CB41/p1764680205807019
4953
# and remove this thread when IsaacLab has a fix.
50-
RUN if python -c "import qpsolvers; print(qpsolvers.available_solvers)" | grep -q "osqp"; then \
54+
RUN if /isaac-sim/python.sh -c "import qpsolvers; print(qpsolvers.available_solvers)" | grep -q "osqp"; then \
5155
echo "OSQP is installed. You can remove this clause from the Arena dockerfile."; \
5256
else \
5357
echo "OSQP missing, installing... This is a patch for an Isaac Lab bug."; \
@@ -77,7 +81,7 @@ ENV LW_API_ENDPOINT="https://api-dev.lightwheel.net"
7781

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

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

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

0 commit comments

Comments
 (0)