Skip to content

Commit

Permalink
install minimal ros package
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbusch committed Sep 7, 2023
1 parent b1ad47c commit c12197e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ RUN apt-get update && \
git \
python3-rosdep \
python3-vcstool \
&& rm -rf /var/lib/apt/lists/*
ros-${ROS_DISTRO}-ros-environment \
&& rm -rf /var/lib/apt/lists/* && \
source /opt/ros/${ROS_DISTRO}/setup.bash

# copy contents of repository
COPY . src/target
Expand Down Expand Up @@ -165,7 +167,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# install ROS CLI tools
RUN source /opt/ros/$ROS_DISTRO/setup.bash && \
RUN source /opt/ros/${ROS_DISTRO}/setup.bash && \
apt-get update && \
if [[ "$ROS_VERSION" == "1" ]]; then \
apt-get install -y \
Expand Down

0 comments on commit c12197e

Please sign in to comment.