-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use alpine with https://github.com/just-containers/s6-overlay for run…
…ning multiple processes in a container
- Loading branch information
1 parent
3619b30
commit a52e0d7
Showing
5 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
AUG_BASE="/files/etc/avahi/avahi-daemon.conf" | ||
|
||
avahi_set() { | ||
if [ $# -lt 3 ]; then | ||
>&2 echo "Usage: avahi_set SECTION KEY VALUE" | ||
return 1 | ||
fi | ||
augtool set "${AUG_BASE}/$1/$2" "$3" | ||
} | ||
|
||
# Defaults | ||
SERVER_ENABLE_DBUS=${SERVER_ENABLE_DBUS:-no} | ||
|
||
# server section | ||
if [ -n "${SERVER_HOST_NAME}" ]; then | ||
avahi_set "server" "host-name" "${SERVER_HOST_NAME}" | ||
fi | ||
if [ -n "${SERVER_DOMAIN_NAME}" ]; then | ||
avahi_set "server" "domain-name" "${SERVER_DOMAIN_NAME}" | ||
fi | ||
if [ -n "${SERVER_ENABLE_DBUS}" ]; then | ||
avahi_set "server" "enable-dbus" "${SERVER_ENABLE_DBUS}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
exec avahi-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
exec s6-setuidgid abc /usr/local/bin/docker_mdns "$NETWORK_INTERFACE" |