update
This commit is contained in:
parent
fa9c96aa3e
commit
a34849f92a
@ -79,20 +79,20 @@ fi
|
||||
apt update && apt install -y iproute2
|
||||
|
||||
# Find the ZeroTier interface name dynamically
|
||||
zerotier_interface=$(ip addr show | awk '/^.*: zt/{print $2}' | cut -d ':' -f 1)
|
||||
# zerotier_interface=$(ip addr show | awk '/^.*: zt/{print $2}' | cut -d ':' -f 1)
|
||||
|
||||
if [ -z "$zerotier_interface" ]; then
|
||||
echo "ZeroTier interface not found."
|
||||
exit 1
|
||||
fi
|
||||
# if [ -z "$zerotier_interface" ]; then
|
||||
# echo "ZeroTier interface not found."
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
echo "Using ZeroTier interface: $zerotier_interface"
|
||||
# echo "Using ZeroTier interface: $zerotier_interface"
|
||||
|
||||
# Set the path to your CycloneDDS configuration file
|
||||
config_file="/cyclonedds.xml"
|
||||
# # Set the path to your CycloneDDS configuration file
|
||||
# config_file="/cyclonedds.xml"
|
||||
|
||||
# Replace the content between <NetworkInterfaceAddress> tags
|
||||
sed -i "s|<NetworkInterfaceAddress>.*</NetworkInterfaceAddress>|<NetworkInterfaceAddress>$zerotier_interface</NetworkInterfaceAddress>|g" "$config_file"
|
||||
# # Replace the content between <NetworkInterfaceAddress> tags
|
||||
# sed -i "s|<NetworkInterfaceAddress>.*</NetworkInterfaceAddress>|<NetworkInterfaceAddress>$zerotier_interface</NetworkInterfaceAddress>|g" "$config_file"
|
||||
|
||||
# Execute the command passed into this entrypoint
|
||||
exec "$@"
|
@ -60,7 +60,7 @@ services:
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
||||
- ${XAUTHORITY:-$HOME/.Xauthority}:/root/.Xauthority
|
||||
- ./customize/entrypoint.sh:/entrypoint.sh
|
||||
- ./customize/cyclonedds_zerotier.xml:/cyclonedds.xml
|
||||
- ./customize/cyclonedds.xml:/cyclonedds.xml
|
||||
|
||||
# networks: # not using bridging anymore, instead try using all services on macvlan? let's see... shoudl word for now. Bridging does definitely not work because multicast is not supported here.
|
||||
# rmp:
|
||||
|
Loading…
Reference in New Issue
Block a user