Skip to content

Commit

Permalink
Add prebuilt cache container
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Sep 21, 2023
1 parent 44964ce commit cd6c457
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions containers/autoware-prebuilt-cache/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ghcr.io/bounverif/autoware-build:latest as prebuilt

RUN git clone https://github.com/autowarefoundation/autoware.git --depth 1 /autoware \
&& mkdir /autoware/src \
&& vcs import --shallow /autoware/src < /autoware/autoware.repos \
&& . /opt/ros/humble/setup.sh \
&& colcon build \
--base-paths /autoware/src \
--build-base /autoware/build \
--install-base /opt/autoware/humble/ \
--cmake-args \
" -Wno-dev" \
" --no-warn-unused-cli" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
&& rm -rf /autoware

FROM ubuntu:22.04
COPY --from=prebuilt /opt/autoware/humble /opt/autoware/humble

0 comments on commit cd6c457

Please sign in to comment.