Skip to content

Commit

Permalink
feat: Make dockerfile(not validated
Browse files Browse the repository at this point in the history
  • Loading branch information
mqjinwon committed Oct 30, 2024
1 parent 2fdc4ac commit 3ccf473
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,28 @@ pre-commit 실행:
pre-commit run --all-files
```

## Docker

Dockerfile을 통해 컨테이너를 빌드하고 실행할 수 있습니다.

```bash
docker build -t stride-sim docker
docker run --name isaac-sim-4.0.0 --entrypoint bash -it --runtime=nvidia --gpus all -e "ACCEPT_EULA=Y" --network=host \
-e "PRIVACY_CONSENT=Y" \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache:rw \
-v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
-v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
-v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
-v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
-v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
-v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
-v ~/docker/isaac-sim/documents:/root/Documents:rw \
stride-sim
```

## 라이선스

이 프로젝트는 MIT 라이선스 하에 배포됩니다.
42 changes: 42 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM nvcr.io/nvidia/isaac-sim:4.0.0

# Set working directory to root
WORKDIR /

# Update apt-get and install necessary packages
RUN apt-get update && \
apt-get install -y git curl git-lfs && \
git lfs install

# Clone the required repositories
RUN git clone https://github.com/AuTURBO/StrideSim.git && \
git clone https://github.com/isaac-sim/IsaacLab.git -b v1.0.0

# Install ROS 2 Humble
# RUN apt-get update && apt-get install -y locales software-properties-common && \
# locale-gen en_US en_US.UTF-8 && \
# update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
# add-apt-repository universe && \
# curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
# 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 && \
# apt-get update && \
# apt-get install -y ros-humble-desktop

# Install Miniconda (latest version)
RUN curl -sS https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh && \
bash miniconda.sh -b -p /opt/miniconda && \
rm miniconda.sh && \
/opt/miniconda/bin/conda init

# Set environment variables for conda
ENV PATH="/opt/miniconda/bin:$PATH"

# Set up IsaacLab
WORKDIR /IsaacLab
RUN ln -s /isaac-sim _isaac_sim && \
./isaaclab.sh --conda && \
/opt/miniconda/bin/conda run -n isaaclab ./isaaclab.sh --install

# Set up StrideSim
WORKDIR /StrideSim/rl
RUN python -m pip install -e .

0 comments on commit 3ccf473

Please sign in to comment.