Skip to content

Commit

Permalink
Patching dockerfile with workaround for protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed Feb 11, 2019
1 parent abacc4c commit 78c3c1c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ RUN apt-get update && apt-get install -q -y \
# copy all package.xml
ENV ROS_WS /opt/ros_ws
RUN mkdir -p $ROS_WS/src
WORKDIR $ROS_WS
COPY ./bbr_msgs/package.xml src/bbr_ros2/bbr_msgs/
COPY ./bbr_rosbag2_storage_plugin/package.xml src/bbr_ros2/bbr_rosbag2_storage_plugin/
COPY ./bbr_sawtooth_bridge/package.xml src/bbr_ros2/bbr_sawtooth_bridge/
WORKDIR $ROS_WS/src/bbr_ros2
COPY ./bbr_common/package.xml bbr_common/
COPY ./bbr_msgs/package.xml bbr_msgs/
COPY ./bbr_rosbag2_storage_plugin/package.xml bbr_rosbag2_storage_plugin/
COPY ./bbr_sawtooth_bridge/package.xml bbr_sawtooth_bridge/

WORKDIR $ROS_WS
# install package dependencies
RUN apt-get update && apt-get install -y \
ros-$ROS_DISTRO-ros2bag && \
Expand All @@ -49,7 +51,8 @@ RUN . /opt/ros/$ROS_DISTRO/setup.sh && \
colcon build \
--symlink-install \
--cmake-args \
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
-DCMAKE_CXX_FLAGS="-Wno-unused-parameter"

# source workspace from entrypoint
RUN sed --in-place --expression \
Expand Down

0 comments on commit 78c3c1c

Please sign in to comment.