Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add better compose defaults #61

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

philipp-caspers
Copy link
Member

@philipp-caspers philipp-caspers commented Oct 17, 2024

This change improves the overall experience when starting the bridge via docker compose.

@philipp-caspers philipp-caspers force-pushed the chore/add-better-compose-defaults branch from 2eef610 to 463cfc8 Compare October 18, 2024 07:43
@philipp-caspers philipp-caspers changed the title chore: Add better compose defaults feat: Add better compose defaults Oct 18, 2024
We assume that the typical user will either have ROS installed on the
host or uses multiple containers connected via the hosts network.
This should act as a living documentation.
This is a workaround for the `special` signal handling of ros2 launch.
To stop a process docker sends a SIGTERM on default.
The ros2 launch wrapper however ignores SIGTERM (only SIGINT is
considered).
Docker then sends a SIGKILL after a timeout.
As a result, the shutdown times of the container are at least as long as the
timeout.
This change makes docker send SIGINT instead of SIGTERM, resulting in
proper fast shutdown.
See ros2/launch#666 for details.
@philipp-caspers philipp-caspers force-pushed the chore/add-better-compose-defaults branch from 463cfc8 to 040ecff Compare October 18, 2024 14:00
@philipp-caspers philipp-caspers marked this pull request as ready for review October 18, 2024 14:31
@philipp-caspers philipp-caspers merged commit df95668 into main Oct 18, 2024
7 checks passed
@philipp-caspers philipp-caspers deleted the chore/add-better-compose-defaults branch October 18, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants