Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Set colcon defaults for user overlay image (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass authored Feb 26, 2024
1 parent c9eab15 commit 97eda65
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--from-paths src \
--ignore-src

# Set up colcon defaults for the new user
USER ${USERNAME}
RUN colcon mixin add default \
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && \
colcon mixin update && \
colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
colcon metadata update
COPY colcon-defaults.yaml /home/${USERNAME}/.colcon/defaults.yaml

# hadolint ignore=DL3002
USER root

###################################################################
# Target for the developer build which does not compile any code. #
###################################################################
Expand Down
17 changes: 17 additions & 0 deletions colcon-defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Contains colcon default settings for user overlay containers.
build:
# Enable this for bidirectional syncing from the UI
symlink-install: true
mixin:
# Enable ccache support
- ccache
# Multithreaded linker to speed up linking step during compilation
- lld
- compile-commands
# Debug info and build testing for dev workflows
- rel-with-deb-info
- build-testing-on
test:
event-handlers:
- console_direct+
- desktop_notification+

0 comments on commit 97eda65

Please sign in to comment.