Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docker/Dockerfile.isaaclab_arena
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=nvcr.io/nvidia/isaac-sim:5.0.0
ARG BASE_IMAGE=nvcr.io/nvidia/isaac-sim:5.1.0

FROM ${BASE_IMAGE}

Expand All @@ -10,6 +10,8 @@ ARG WORKDIR="/workspace"
ENV WORKDIR=${WORKDIR}
WORKDIR "${WORKDIR}"

USER root

# Hide conflicting Vulkan files, if needed.
RUN if [ -e "/usr/share/vulkan" ] && [ -e "/etc/vulkan" ]; then \
mv /usr/share/vulkan /usr/share/vulkan_hidden; \
Expand All @@ -24,7 +26,7 @@ RUN apt-get update && apt-get install -y \
python3-pip

# Update pip to the latest version
RUN pip3 install --upgrade pip
RUN /isaac-sim/python.sh -m pip install --upgrade pip

################################
# Install Isaac Lab
Expand All @@ -38,7 +40,7 @@ ENV TERM=xterm
# Symlink isaac sim to IsaacLab
RUN ln -s /isaac-sim/ ${WORKDIR}/submodules/IsaacLab/_isaac_sim
# Install IsaacLab dependencies
RUN for DIR in ${WORKDIR}/submodules/IsaacLab/source/isaaclab*/; do pip install --no-deps -e "$DIR"; done
RUN for DIR in ${WORKDIR}/submodules/IsaacLab/source/isaaclab*/; do /isaac-sim/python.sh -m pip install --no-deps -e "$DIR"; done
# Logs and other stuff appear under dist-packages per default, so this dir has to be writeable.
RUN chmod 777 -R /isaac-sim/kit/
# Install isaaclab
Expand Down Expand Up @@ -66,7 +68,7 @@ ENV LW_API_ENDPOINT="https://api-dev.lightwheel.net"

# HuggingFace for downloading datasets and models.
# NOTE(alexmillane, 2025-10-28): For some reason the CLI has issues when installed in the IsaacSim version of python.
RUN pip install huggingface-hub[cli]
RUN /isaac-sim/python.sh -m pip install huggingface-hub[cli]
RUN export PATH=$PATH:/root/.local/bin

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

# Change prompt so it's obvious we're inside the arena container
Expand Down
10 changes: 7 additions & 3 deletions docker/run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ else
"--ulimit" "stack=-1"
"--ipc=host"
"--net=host"
"--runtime=nvidia"
"--gpus=all"
"-v" "./docs:${WORKDIR}/docs"
"-v" "./isaaclab_arena:${WORKDIR}/isaaclab_arena"
Expand Down Expand Up @@ -175,8 +174,13 @@ else
if [ "$INSTALL_GROOT" = "true" ]; then
DOCKER_RUN_ARGS+=("-v" "./submodules/Isaac-GR00T:${WORKDIR}/submodules/Isaac-GR00T")
fi
# Allow X11 connections
xhost +local:docker > /dev/null

if [[ -n "$DISPLAY" ]]; then
# Allow X11 connections
xhost +local:docker > /dev/null
else
echo "No DISPLAY detected"
fi

docker run "${DOCKER_RUN_ARGS[@]}" --interactive --rm --tty ${DOCKER_IMAGE_NAME}:${DOCKER_VERSION_TAG} "${@}"
fi