Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docker-new/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ if [ -n "${HOST_UID}" ] && [ -n "${HOST_GID}" ]; then
groupmod -g "${HOST_GID}" "${USERNAME}" >/dev/null 2>&1 || true
fi

# Enable multicast on loopback so DDS discovery works when pinned to lo
ip link set lo multicast on >/dev/null 2>&1 || true

# Apply system-wide network tuning for DDS (needs --privileged or --cap-add=NET_ADMIN)
# https://autowarefoundation.github.io/autoware-documentation/main/installation/additional-settings-for-developers/network-configuration/dds-settings/#tune-system-wide-network-settings
sysctl -w net.core.rmem_max=2147483647 >/dev/null 2>&1 || true
sysctl -w net.ipv4.ipfrag_time=3 >/dev/null 2>&1 || true
sysctl -w net.ipv4.ipfrag_high_thresh=134217728 >/dev/null 2>&1 || true

# shellcheck source=/dev/null
source "/opt/ros/${ROS_DISTRO}/setup.bash"

Expand Down
Loading