Skip to content

Commit

Permalink
Set specific username to access user's files in container
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicky-Kim-A committed Nov 6, 2024
1 parent 4a42666 commit 4b7a74e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM nvcr.io/nvidia/isaac-sim:4.0.0

ARG USERNAME=USERNAME

# Set working directory to root
WORKDIR /

Expand All @@ -12,14 +14,7 @@ RUN apt-get update && \
RUN apt-get install -y build-essential gcc g++ sudo wget unzip software-properties-common

# 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

# pull lfs files in StrideSim
WORKDIR /StrideSim

RUN git lfs fetch && \
git lfs pull
RUN git clone https://github.com/isaac-sim/IsaacLab.git -b v1.0.0

# Install ROS 2 Humble
RUN apt-get update && \
Expand Down Expand Up @@ -61,8 +56,14 @@ RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
# Install IsaacLab
RUN /bin/bash -c "./isaaclab.sh --install"

WORKDIR /home/$USERNAME

# pull lfs files in StrideSim
RUN apt-get install git-lfs && git lfs install
RUN git clone https://github.com/AuTURBO/StrideSim.git && cd StrideSim && git lfs fetch && git lfs pull

# Set up StrideSim
WORKDIR /StrideSim/rl
WORKDIR /home/$USERNAME/StrideSim/rl
RUN /bin/bash -c "source /opt/miniconda/etc/profile.d/conda.sh && \
conda activate isaaclab && \
python -m pip install -e ."
Expand Down

0 comments on commit 4b7a74e

Please sign in to comment.