Skip to content

Commit

Permalink
Docker fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CDonosoK committed Nov 18, 2024
1 parent 39a78c4 commit bbff036
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 5,12 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV ROS_DISTRO=rolling

###### Install package dependencies
RUN apt-get update
RUN apt-get install -y \
git \
libpcl-dev \
ros-$ROS_DISTRO-pcl-ros \
ros-$ROS_DISTRO-pcl-conversions \
python-is-python3 \
python3-pip

Expand All @@ -15,10 19,8 @@ RUN mkdir -p /ros2_ws/src
WORKDIR /ros2_ws/src
RUN git clone https://github.com/CDonosoK/ros2_pcl_segmentation.git

###### BUILD
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc
WORKDIR /ros2_ws
RUN . /opt/ros/$ROS_DISTRO/setup.bash && colcon build
###### Build the workspace
RUN /bin/bash -c "source /opt/ros/$ROS_DISTRO/setup.bash && colcon build"

###### Source the workspace
RUN echo "source /ros2_ws/install/setup.bash" >> ~/.bashrc

0 comments on commit bbff036

Please sign in to comment.