I have multi-app containers, one is responsible for creating the xml service file while the Avahi-daemon itself is in thee Host. I need the container (which is in C# but it is possible to use python too) to be the one to create the xml since there is data in the txt-record
that is only known after loading and starting the container. Is it possible to use this service file and transfer it to host? or change the dockerfile to interact with the host? Alternatives to the xml are also welcomed. The xml:
<?xml version="1.0" encoding="UTF-8"?>
<service-group>
<name>dev-7</name>
<service>
<type>_http._tcp</type>
<port>61005</port>
<txt-record>Description=Description</txt-record>
<txt-record>GRPCPort=61005</txt-record>
<txt-record>EventRendererGrpcPort=61007</txt-record>
<txt-record>Version=3.7</txt-record>
<txt-record>VenueID=6355</txt-record>
</service>
</service-group>
It is worth mentioning that the device is a Balena
I've tried downloading the avahi into the container but due to firewall issues - it is not possible to run the service files from the container. I've also tried: https://github.com/balena-io/balena-mdns-publisher But there is no description or port possibility there