From 743af3adc2901dfcaae5e6eaa2dcdb28a56c9a9d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 14 Nov 2014 15:58:36 +0100 Subject: [PATCH] Initial version --- Dockerfile | 19 +++++++++++++++++++ shoutcast.conf | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 Dockerfile create mode 100644 shoutcast.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e9f24a0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:14.04 +MAINTAINER Knut Ahlers + +RUN useradd -m shoutcast && \ + mkdir /opt/shoutcast + +WORKDIR /opt/shoutcast + +RUN apt-get update && \ + apt-get install -y wget && \ + wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz && \ + tar -xzf sc_serv2_linux_x64-latest.tar.gz + +VOLUME ["/etc/shoutcast"] + +EXPOSE 8000 + +USER shoutcast +ENTRYPOINT ["/opt/shoutcast/sc_serv", "/etc/shoutcast/shoutcast.conf"] diff --git a/shoutcast.conf b/shoutcast.conf new file mode 100644 index 0000000..0461e3b --- /dev/null +++ b/shoutcast.conf @@ -0,0 +1,34 @@ +; NOTE: for any relative paths specified are relative to +; sc_serv and not to where the conf file is being stored + +; here we will setup where the log and other related files +; will be stored. make sure that these folders exist else +; sc_serv will throw an error and will close itself down. +; we will make the logs save to the sc_serv2 directory +logfile=/var/log/sc_serv.log +w3clog=/var/log/sc_w3c.log +banfile=/etc/shoutcast/sc_serv.ban +ripfile=/etc/shoutcast/sc_serv.rip + + +; for testing we will make the server only work locally +; (i.e. localhost / 127.0.0.1) though if this is left out +; or set to publicserver=always then we attempt to make a +; connection to the YP for listing - do not forget to add +; in a 'streamauthhash' value for any public streams made +;publicserver=never + + +; if you're wanting to use a different port to use for any +; connections then you can use this option e.g. to use 80 +; otherwise port 8000 is used as the default to listen on. +;portbase=80 + + +; password used by sc_trans or the Winamp dsp plug-in +; NOTE: remember to change this to something else +password=testing + + +; password used for accessing the administation pages +; NOTE: remember to change this to something else