Skip to content

Commit

Permalink
Not include build and install directories
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Jul 20, 2024
1 parent 0968ba2 commit 7c6e0a6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ RUN --mount=type=bind,from=autoware-source,source=${AUTOWARE_SOURCE_DIR},target=
colcon --log-base /dev/null build \
--base-paths ${AUTOWARE_SOURCE_DIR} \
--build-base ${AUTOWARE_BUILD_DIR} \
--install-base /dev/null \
--install-base ${AUTOWARE_INSTALL_DIR} \
--packages-up-to autoware_launch \
--event-handlers \
console_direct- \
Expand All @@ -149,6 +149,8 @@ RUN --mount=type=bind,from=autoware-source,source=${AUTOWARE_SOURCE_DIR},target=
-DCMAKE_BUILD_TYPE=Release \
" -Wno-dev" \
" --no-warn-unused-cli" \
&& rm -rf ${AUTOWARE_BUILD_DIR} \
&& rm -rf ${AUTOWARE_INSTALL_DIR} \
&& du -h --max-depth=0 ${CCACHE_DIR}

USER bounverif
Expand All @@ -160,9 +162,8 @@ USER root

COPY autoware.repos.yml /var/lib/autoware/autoware.repos.${AUTOWARE_VERSION}.yml

RUN mkdir -p ${AUTOWARE_SOURCE_DIR} && vcs import --shallow ${AUTOWARE_SOURCE_DIR} < /var/lib/autoware/autoware.repos.${AUTOWARE_VERSION}.yml

RUN ccache --zero-stats && \
RUN mkdir -p ${AUTOWARE_SOURCE_DIR} && vcs import --shallow ${AUTOWARE_SOURCE_DIR} < /var/lib/autoware/autoware.repos.${AUTOWARE_VERSION}.yml \
ccache --zero-stats && \
. /opt/ros/humble/setup.sh && \
colcon --log-base /dev/null build \
--base-paths ${AUTOWARE_SOURCE_DIR} \
Expand All @@ -182,6 +183,8 @@ RUN ccache --zero-stats && \
-DCMAKE_BUILD_TYPE=Release \
" -Wno-dev" \
" --no-warn-unused-cli" \
&& rm -rf ${AUTOWARE_SOURCE_DIR} \
&& rm -rf ${AUTOWARE_BUILD_DIR} \
&& ccache -v --show-stats

USER bounverif
Expand Down

0 comments on commit 7c6e0a6

Please sign in to comment.