|
| 1 | +FROM nvcr.io/nvidia/isaac-sim:4.0.0 |
| 2 | + |
| 3 | +# Set working directory to root |
| 4 | +WORKDIR / |
| 5 | + |
| 6 | +# Update apt-get and install necessary packages |
| 7 | +RUN apt-get update && \ |
| 8 | + apt-get install -y git curl git-lfs && \ |
| 9 | + git lfs install |
| 10 | + |
| 11 | +# Clone the required repositories |
| 12 | +RUN git clone https://github.com/AuTURBO/StrideSim.git && \ |
| 13 | + git clone https://github.com/isaac-sim/IsaacLab.git -b v1.0.0 |
| 14 | + |
| 15 | +# Install ROS 2 Humble |
| 16 | +# RUN apt-get update && apt-get install -y locales software-properties-common && \ |
| 17 | +# locale-gen en_US en_US.UTF-8 && \ |
| 18 | +# update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \ |
| 19 | +# add-apt-repository universe && \ |
| 20 | +# curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \ |
| 21 | +# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/ros2.list && \ |
| 22 | +# apt-get update && \ |
| 23 | +# apt-get install -y ros-humble-desktop |
| 24 | + |
| 25 | +# Install Miniconda (latest version) |
| 26 | +RUN curl -sS https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh && \ |
| 27 | + bash miniconda.sh -b -p /opt/miniconda && \ |
| 28 | + rm miniconda.sh && \ |
| 29 | + /opt/miniconda/bin/conda init |
| 30 | + |
| 31 | +# Set environment variables for conda |
| 32 | +ENV PATH="/opt/miniconda/bin:$PATH" |
| 33 | + |
| 34 | +# Set up IsaacLab |
| 35 | +WORKDIR /IsaacLab |
| 36 | +RUN ln -s /isaac-sim _isaac_sim && \ |
| 37 | + ./isaaclab.sh --conda && \ |
| 38 | + /opt/miniconda/bin/conda run -n isaaclab ./isaaclab.sh --install |
| 39 | + |
| 40 | +# Set up StrideSim |
| 41 | +WORKDIR /StrideSim/rl |
| 42 | +RUN python -m pip install -e . |
0 commit comments