From 41ac0df86ba8d6e83d4f8356ecad3cd26b2dba7d Mon Sep 17 00:00:00 2001 From: Tim Bazuin Date: Thu, 21 Feb 2019 13:01:37 +0100 Subject: [PATCH 1/4] added a umurmur container --- umurmur/Dockerfile | 10 +++++ umurmur/files/umurmur.conf | 80 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 umurmur/Dockerfile create mode 100644 umurmur/files/umurmur.conf diff --git a/umurmur/Dockerfile b/umurmur/Dockerfile new file mode 100644 index 0000000..f20c17c --- /dev/null +++ b/umurmur/Dockerfile @@ -0,0 +1,10 @@ +FROM dxrto/base +LABEL authors="krageon " +RUN xbps-install -Sy umurmur + +COPY files/umurmur.conf /etc/umurmur/umurmur.conf + +EXPOSE 64738 + +USER umurmur +CMD umurmurd -c /etc/umurmur/umurmur.conf \ No newline at end of file diff --git a/umurmur/files/umurmur.conf b/umurmur/files/umurmur.conf new file mode 100644 index 0000000..b6e86d6 --- /dev/null +++ b/umurmur/files/umurmur.conf @@ -0,0 +1,80 @@ +max_bandwidth = 48000; +welcometext = "Welcome to uMurmur!"; +certificate = "/etc/umurmur/cert.crt"; +private_key = "/etc/umurmur/key.key"; +password = "YouWillWantToChangeThis"; +# admin_password = "test"; # Set to enable admin functionality. +# ban_length = 0; # Length in seconds for a ban. Default is 0. 0 = forever. +# enable_ban = false; # Default is false +# banfile = "banfile.txt"; # File to save bans to. Default is to not save bans to file. +# sync_banfile = false; # Keep banfile synced. Default is false, which means it is saved to at shutdown only. +# allow_textmessage = true; # Default is true +# opus_threshold = 100; # Percentage of users supporting Opus codec for it to be chosen. Default is 100. +# show_addresses = true; # Whether to show client's IP addresses under user information +max_users = 10; + +# bindport = 64738; +# bindaddr = "192.168.1.1"; + +# username and groupname for privilege dropping. +# Will attempt to switch user if set. +username = "umurmur"; +# If groupname not set the user's default login group will be used +groupname = "umurmur"; + +# Log to file option. Default is logging to syslog. +# umurmurd will close and reopen the logfile if SIGHUP is received. +# logfile = "/var/log/umurmurd.log"; + +# CA location for CA-signed certificates +# ca_path = "/path/to/ca/certificates/"; + +# Channel tree definition: +# Root channel must always be defined first. +# If a channel has a parent, the parent must be defined before the child channel(s). +channels = ( { + name = "Root"; + parent = ""; + description = "Root channel. No entry."; + noenter = true; + }, + { + name = "Lobby"; + parent = "Root"; + description = "Lobby channel"; + }, + { + name = "Silent"; + parent = "Root"; + description = "Silent channel"; + silent = true; # Optional. Default is false + }, + { + name = "Red team"; + parent = "Lobby"; + description = "The Red team channel"; + position = 0; # Optional. Default is 0 and the channels will be shown in alphabetic order. + # password = "redpw"; + }, + { + name = "Blue team"; + parent = "Lobby"; + description = "The Blue team channel"; + position = 1; # Optional. Default is 0 and the channels will be shown in alphabetic order. + # password = "bluepw"; + } +); +# Channel links configuration. +channel_links = ( { + source = "Lobby"; + destination = "Red team"; + }, + { + source = "Lobby"; + destination = "Blue team"; + } +); + +# The channel in which users will appear in when connecting. +# Note that default channel can't have 'noenter = true' or password set +default_channel = "Lobby"; From e3880d6686b78066f74b654d485908971ec27dc7 Mon Sep 17 00:00:00 2001 From: Tim Bazuin Date: Thu, 21 Feb 2019 13:14:14 +0100 Subject: [PATCH 2/4] chowned the directory for umurmur so the umurmur user can access all of it, made umurmurd stop detaching --- umurmur/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umurmur/Dockerfile b/umurmur/Dockerfile index f20c17c..45de3ec 100644 --- a/umurmur/Dockerfile +++ b/umurmur/Dockerfile @@ -3,8 +3,9 @@ LABEL authors="krageon " RUN xbps-install -Sy umurmur COPY files/umurmur.conf /etc/umurmur/umurmur.conf +RUN chown -R umurmur:umurmur /etc/umurmur/ EXPOSE 64738 USER umurmur -CMD umurmurd -c /etc/umurmur/umurmur.conf \ No newline at end of file +CMD umurmurd -d -c /etc/umurmur/umurmur.conf \ No newline at end of file From 88c8f741f7c9bba75b7aeb9c0e517646e9508d57 Mon Sep 17 00:00:00 2001 From: Tim Bazuin Date: Thu, 21 Feb 2019 13:23:16 +0100 Subject: [PATCH 3/4] also exposes the UDP variant of the default murmur port --- umurmur/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umurmur/Dockerfile b/umurmur/Dockerfile index 45de3ec..9c88599 100644 --- a/umurmur/Dockerfile +++ b/umurmur/Dockerfile @@ -5,7 +5,8 @@ RUN xbps-install -Sy umurmur COPY files/umurmur.conf /etc/umurmur/umurmur.conf RUN chown -R umurmur:umurmur /etc/umurmur/ -EXPOSE 64738 +EXPOSE 64738/tcp +EXPOSE 64738/udp USER umurmur CMD umurmurd -d -c /etc/umurmur/umurmur.conf \ No newline at end of file From 02f18857ff6ee620ac9cb42e7586a67e6f8b6396 Mon Sep 17 00:00:00 2001 From: Tim Bazuin Date: Thu, 21 Feb 2019 13:26:10 +0100 Subject: [PATCH 4/4] remove cached packages after installing umurmur --- umurmur/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umurmur/Dockerfile b/umurmur/Dockerfile index 9c88599..7590a30 100644 --- a/umurmur/Dockerfile +++ b/umurmur/Dockerfile @@ -1,6 +1,6 @@ FROM dxrto/base LABEL authors="krageon " -RUN xbps-install -Sy umurmur +RUN xbps-install -Sy umurmur && xbps-remove -Oo COPY files/umurmur.conf /etc/umurmur/umurmur.conf RUN chown -R umurmur:umurmur /etc/umurmur/