Skip to content

Commit 4484836

Browse files
committed
feat: developing dockerfile..
1 parent 3ccf473 commit 4484836

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

docker/Dockerfile

+21-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ WORKDIR /
55

66
# Update apt-get and install necessary packages
77
RUN apt-get update && \
8-
apt-get install -y git curl git-lfs && \
8+
apt-get install -y git curl git-lfs cmake vim gedit && \
99
git lfs install
1010

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

15+
WORKDIR /StrideSim
16+
17+
# update git lfs
18+
RUN git lfs fetch && \
19+
git lfs pull
20+
1521
# Install ROS 2 Humble
1622
# RUN apt-get update && apt-get install -y locales software-properties-common && \
1723
# locale-gen en_US en_US.UTF-8 && \
@@ -23,6 +29,8 @@ RUN git clone https://github.com/AuTURBO/StrideSim.git && \
2329
# apt-get install -y ros-humble-desktop
2430

2531
# Install Miniconda (latest version)
32+
WORKDIR /
33+
2634
RUN curl -sS https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh && \
2735
bash miniconda.sh -b -p /opt/miniconda && \
2836
rm miniconda.sh && \
@@ -33,9 +41,18 @@ ENV PATH="/opt/miniconda/bin:$PATH"
3341

3442
# Set up IsaacLab
3543
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
44+
45+
# Create symbolic link
46+
RUN ln -s /isaac-sim _isaac_sim
47+
48+
# Initialize conda
49+
RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh"
50+
51+
# Run conda setup
52+
RUN /bin/bash -c "./isaaclab.sh --conda"
53+
54+
# Install IsaacLab
55+
RUN /bin/bash -c "./isaaclab.sh --install"
3956

4057
# Set up StrideSim
4158
WORKDIR /StrideSim/rl

0 commit comments

Comments
 (0)