Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Leuchak committed Mar 25, 2024
1 parent ac3cb54 commit ee89013
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ RUN apt update && apt upgrade -y
# Install Git
RUN apt install -y git

# Copy to preload the ros packages
COPY ./ /workspace/$USERNAME/

# Change user
USER $USERNAME

# Rosdep update
# Source the ROS setup file
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc && \
echo "source /gazebo/gazebo_ws/install/setup.bash" >> ~/.bashrc

# Install ROS dependencies
RUN rosdep update
# Copy to preload the ros packages
COPY ./ /workspace/$USERNAME/
COPY ./.github /workspace/$USERNAME/build
COPY ./devel /workspace/$USERNAME/devel


RUN rosdep install --from-paths src --ignore-src --rosdistro humble -y

# Source the ROS setup file
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
RUN echo "source /gazebo/gazebo_ws/install/setup.bash" >> ~/.bashrc
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/
log/

0 comments on commit ee89013

Please sign in to comment.