Initial version

This commit is contained in:
Knut Ahlers 2014-11-14 15:58:36 +01:00
commit 743af3adc2
2 changed files with 53 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM ubuntu:14.04
MAINTAINER Knut Ahlers <knut@ahlers.me>
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"]

34
shoutcast.conf Normal file
View file

@ -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