From cd6c457d51ee9c5ed92cc85b73954b6e05957931 Mon Sep 17 00:00:00 2001 From: Dogan Ulus Date: Thu, 21 Sep 2023 21:57:49 +0300 Subject: [PATCH] Add prebuilt cache container --- containers/autoware-prebuilt-cache/Dockerfile | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 containers/autoware-prebuilt-cache/Dockerfile diff --git a/containers/autoware-prebuilt-cache/Dockerfile b/containers/autoware-prebuilt-cache/Dockerfile new file mode 100644 index 0000000..450816d --- /dev/null +++ b/containers/autoware-prebuilt-cache/Dockerfile @@ -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