Skip to content

Commit

Permalink
chore(docker): separate rosdep install and colcon build RUN comma…
Browse files Browse the repository at this point in the history
  • Loading branch information
youtalk committed May 17, 2024
1 parent 97be35c commit 791d8ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/autoware-openadk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,17 @@ COPY --from=src-imported /rosdep-build-depend-packages.txt /tmp/rosdep-build-dep
RUN --mount=type=ssh \
apt-get update \
&& cat /tmp/rosdep-build-depend-packages.txt | xargs apt-get install -y --no-install-recommends \
&& source /opt/ros/"$ROS_DISTRO"/setup.bash \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache

# Build Autoware
RUN source /opt/ros/"$ROS_DISTRO"/setup.bash \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \
" -Wno-dev" \
" --no-warn-unused-cli" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
&& find /autoware/install -type d -exec chmod 777 {} \; \
&& chmod -R 777 /var/tmp/ccache \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache \
&& rm -rf /autoware/build /autoware/src

CMD ["/bin/bash"]
Expand Down

0 comments on commit 791d8ea

Please sign in to comment.