Skip to content

Commit

Permalink
feat(turtlebot3_ws): Pre-install rosdeps to speed up build
Browse files Browse the repository at this point in the history
Packages copied from the following command:

    rosdep install --from-paths src --ignore-src -y -r --simulate
  • Loading branch information
j3soon committed Oct 24, 2024
1 parent 7c8f4ac commit deb0bb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions turtlebot3_ws/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
ros-$ROS_DISTRO-turtlebot3-msgs \
&& sudo rm -rf /var/lib/apt/lists/*

# Install ros packages based on TurtleBot3 rosdeps to speed up build
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
sudo apt-get update && sudo apt-get install -y \
ros-$ROS_DISTRO-hls-lfcd-lds-driver \
&& sudo rm -rf /var/lib/apt/lists/*

COPY .bashrc /home/$USERNAME/.bashrc
# TODO: Copy additional files here
ENTRYPOINT []
Expand Down

0 comments on commit deb0bb9

Please sign in to comment.