commit 5abe2192420b8e43fa6873e0015484b32dcab5dc Author: dave Date: Sat Dec 13 14:58:37 2014 -0800 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0f42fa3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,76 @@ +FROM ubuntu:14.04 +MAINTAINER Dave P + +# Create rduser (password is rduser) +RUN useradd --groups sudo,audio rduser +RUN echo "rduser:rduser" | chpasswd + +# Install prereqs for edcast compile +RUN apt-get update +RUN apt-get -y install debconf-utils libjack0 libjack-dev libflac-dev libogg-dev libvorbis-dev libmad0-dev libmp3lame-dev g++ make wget + +# Download libfaac manually (copyright?) +RUN wget http://launchpadlibrarian.net/157472510/libfaac-dev_1.28-6_amd64.deb +RUN wget http://launchpadlibrarian.net/157472509/libfaac0_1.28-6_amd64.deb + +# Install libfaac +RUN dpkg -i libfaac0_1.28-6_amd64.deb +RUN dpkg -i libfaac-dev_1.28-6_amd64.deb + +# Compile & install edcast +COPY edcast-jack-3.1.7.tar.gz /tmp/ +RUN tar zxvf /tmp/edcast-jack-3.1.7.tar.gz +RUN cd edcast-jack-3.1.7/ ; ./configure +RUN cd edcast-jack-3.1.7/ ; make +RUN cd edcast-jack-3.1.7/ ; make install + +# Configure icecast +RUN echo "icecast2 icecast2/icecast-setup boolean false" | debconf-set-selections && \ + apt-get -y install icecast2 + +COPY icecast /etc/default/icecast +COPY icecast.xml /etc/default/icecast.xml + +# Install tryphon repos +RUN wget -q -O - http://debian.tryphon.eu/release.asc | apt-key add - +COPY tryphon.list /etc/apt/sources.list.d/tryphon.list + +# Install rivendell and other goodies +RUN apt-get update +RUN echo "mysql-server-5.5 mysql-server/root_password_again password root" | debconf-set-selections && \ + echo "mysql-server-5.5 mysql-server/root_password password root" | debconf-set-selections && \ + echo "rivendell-server rivendell-server/debconfenable boolean false" | debconf-set-selections && \ + apt-get -y install rivendell rivendell-server rivendell-doc mysql-server jack-rack jamin jackd + +COPY rd.conf /etc/rd.conf + +# Alsa (is this necessary?) +RUN apt-get -y install alsa-base alsa-utils + +# VNC Server / X desktop +RUN apt-get -y install icewm +RUN apt-get -y install tightvncserver + + + + + + + + + + + + + + + + + + + +#docker build -t rivendell2 . + + +# TODO: cleanup extra packages like g++, make, etc + diff --git a/README b/README new file mode 100644 index 0000000..b72a240 --- /dev/null +++ b/README @@ -0,0 +1 @@ +TODO: Write readme \ No newline at end of file diff --git a/edcast-jack-3.1.7.tar.gz b/edcast-jack-3.1.7.tar.gz new file mode 100644 index 0000000..c3ed0d3 Binary files /dev/null and b/edcast-jack-3.1.7.tar.gz differ diff --git a/icecast b/icecast new file mode 100644 index 0000000..b5f1a07 --- /dev/null +++ b/icecast @@ -0,0 +1,18 @@ +# Defaults for icecast2 initscript +# sourced by /etc/init.d/icecast2 +# installed at /etc/default/icecast2 by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Full path to the server configuration file +CONFIGFILE="/etc/icecast2/icecast.xml" + +# Name or ID of the user and group the daemon should run under +USERID=icecast2 +GROUPID=icecast + +# Edit /etc/icecast2/icecast.xml and change at least the passwords. +# Change this to true when done to enable the init.d script +ENABLE=true diff --git a/icecast.xml b/icecast.xml new file mode 100644 index 0000000..3b144ef --- /dev/null +++ b/icecast.xml @@ -0,0 +1,180 @@ + + + Earth + icemaster@localhost + + + 1000 + 10 + 4 + 524288 + 30 + 15 + 10 + + 1 + + 32768 + + + + + source + + relay + + + admin + admin + + + + + + + + + localhost + + + + 8000 + + + + + + + + + + + + + + + + + + 1 + + + + /usr/share/icecast2 + + + /var/log/icecast2 + /usr/share/icecast2/web + /usr/share/icecast2/admin + + + + + + + + + + access.log + error.log + + 3 + 10000 + + + + + + 0 + + + \ No newline at end of file diff --git a/rd.conf b/rd.conf new file mode 100644 index 0000000..bbba161 --- /dev/null +++ b/rd.conf @@ -0,0 +1,85 @@ +[Identity] +AudioOwner=rduser +AudioGroup=audio + +[mySQL] +Hostname=127.0.0.1 +Loginname=root +Password=root +Database=Rivendell +Driver=QMYSQL3 + +[Cae] +AudioRoot=/var/snd +AudioExtension=wav +AllowNonstandardRates=true + +[Logs] +Facility=Syslog + +[Alsa] +PeriodQuantity=4 +PeriodSize=1024 + +[Tuning] +UseRealtime=Yes +RealtimePriority=9 + +[JackSession] +Source1=rivendell_1:playout_0L +Destination1=alsa_pcm:playback_1 + +Source2=rivendell_1:playout_0R +Destination2=alsa_pcm:playback_2 + +Source3=rivendell_1:playout_1L +Destination3=alsa_pcm:playback_1 + +Source4=rivendell_1:playout_1R +Destination4=alsa_pcm:playback_2 + +Source5=rivendell_1:playout_2L +Destination5=alsa_pcm:playback_1 + +Source6=rivendell_1:playout_2R +Destination6=alsa_pcm:playback_2 + +Source7=rivendell_1:playout_3L +Destination7=alsa_pcm:playback_1 + +Source8=rivendell_1:playout_3R +Destination8=alsa_pcm:playback_2 + +Source9=rivendell_1:playout_4L +Destination9=alsa_pcm:playback_1 + +Source10=rivendell_1:playout_4R +Destination10=alsa_pcm:playback_2 + +Source11=rivendell_1:playout_5L +Destination11=alsa_pcm:playback_1 + +Source12=rivendell_1:playout_5R +Destination12=alsa_pcm:playback_2 + +Source13=rivendell_1:playout_6L +Destination13=alsa_pcm:playback_1 + +Source14=rivendell_1:playout_6R +Destination14=alsa_pcm:playback_2 + +Source15=rivendell_1:playout_7L +Destination15=alsa_pcm:playback_1 + +Source16=rivendell_1:playout_7R +Destination16=alsa_pcm:playback_2 + +Source17=alsa_pcm:capture_1 +Destination17=rivendell_1:record_0L + +Source18=alsa_pcm:capture_2 +Destination18=rivendell_1:record_0R + +[Format] +SampleRate=44100 +Channels=2 diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..8699d2a --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,3 @@ +# Icecast +/usr/bin/icecast2 -c /etc/icecast2/icecast.xml + diff --git a/tryphon.list b/tryphon.list new file mode 100644 index 0000000..c22f0f0 --- /dev/null +++ b/tryphon.list @@ -0,0 +1,2 @@ +deb http://debian.tryphon.eu trusty main contrib +deb-src http://debian.tryphon.eu trusty main contrib