Skip to content

Commit 3ccf473

Browse files
committed
feat: Make dockerfile(not validated
1 parent 2fdc4ac commit 3ccf473

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,28 @@ pre-commit 실행:
9797
pre-commit run --all-files
9898
```
9999

100+
## Docker
101+
102+
Dockerfile을 통해 컨테이너를 빌드하고 실행할 수 있습니다.
103+
104+
```bash
105+
docker build -t stride-sim docker
106+
107+
docker run --name isaac-sim-4.0.0 --entrypoint bash -it --runtime=nvidia --gpus all -e "ACCEPT_EULA=Y" --network=host \
108+
-e "PRIVACY_CONSENT=Y" \
109+
-e DISPLAY=$DISPLAY \
110+
-v /tmp/.X11-unix:/tmp/.X11-unix \
111+
-v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache:rw \
112+
-v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
113+
-v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
114+
-v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
115+
-v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
116+
-v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
117+
-v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
118+
-v ~/docker/isaac-sim/documents:/root/Documents:rw \
119+
stride-sim
120+
```
121+
100122
## 라이선스
101123

102124
이 프로젝트는 MIT 라이선스 하에 배포됩니다.

docker/Dockerfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

Comments
 (0)