@@ -8,6 +8,9 @@ RUN apt-get update && \
8
8
apt-get install -y git curl git-lfs cmake vim gedit && \
9
9
git lfs install
10
10
11
+ # install build tools
12
+ RUN apt-get install -y build-essential gcc g++ sudo wget unzip software-properties-common
13
+
11
14
# Clone the required repositories
12
15
RUN git clone https://github.com/AuTURBO/StrideSim.git && \
13
16
git clone https://github.com/isaac-sim/IsaacLab.git -b v1.0.0
@@ -19,14 +22,14 @@ RUN git lfs fetch && \
19
22
git lfs pull
20
23
21
24
# Install ROS 2 Humble
22
- # RUN apt-get update && apt-get install -y locales software-properties-common && \
23
- # locale-gen en_US en_US.UTF-8 && \
24
- # update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
25
- # add-apt-repository universe && \
26
- # curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
27
- # 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 && \
28
- # apt-get update && \
29
- # apt-get install -y ros-humble-desktop
25
+ RUN apt-get update && apt-get install -y locales software-properties-common && \
26
+ locale-gen en_US en_US.UTF-8 && \
27
+ update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
28
+ add-apt-repository universe && \
29
+ curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
30
+ 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 && \
31
+ apt-get update && \
32
+ apt-get install -y ros-humble-desktop
30
33
31
34
# Install Miniconda (latest version)
32
35
WORKDIR /
@@ -45,15 +48,27 @@ WORKDIR /IsaacLab
45
48
# Create symbolic link
46
49
RUN ln -s /isaac-sim _isaac_sim
47
50
48
- # Initialize conda
49
- RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh"
50
-
51
51
# Run conda setup
52
52
RUN /bin/bash -c "./isaaclab.sh --conda"
53
53
54
+ # Initialize conda and activate environment in the same RUN command
55
+ RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
56
+ conda init bash && \
57
+ conda activate isaaclab"
58
+
54
59
# Install IsaacLab
55
60
RUN /bin/bash -c "./isaaclab.sh --install"
56
61
57
62
# Set up StrideSim
58
63
WORKDIR /StrideSim/rl
59
- RUN python -m pip install -e .
64
+ RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
65
+ conda activate isaaclab && \
66
+ python -m pip install -e ."
67
+
68
+ WORKDIR /isaac-sim
69
+
70
+ # Add conda environment activation to bashrc
71
+ RUN echo "source /opt/miniconda/etc/profile.d/conda.sh && conda activate isaaclab" >> ~/.bashrc
72
+
73
+ # Set default shell to bash
74
+ SHELL ["/bin/bash" , "-c" ]
0 commit comments