diff --git a/docker-compose.yml b/docker-compose.yml index 78bba08..5e1eee7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,13 +69,13 @@ nginx: volumes_from: - api icecast: - image: moul/icecast:latest + build: ./radio/ volumes: - logs:/var/log/icecast2 - - /etc/localtime:/etc/localtime:ro + - /etc/localtime:/etc/localtime:ro environment: - ICECAST_SOURCE_PASSWORD=RDzNlgqmj67vk - - ICECAST_ADMIN_PASSWORD=CrVuP5evoJZ0. + - ICECAST_ADMIN_PASSWORD=CrVuP5evoJZ0 - ICECAST_RELAY_PASSWORD=9PmUbI1mLne9o ports: - 8000:8000 diff --git a/radio/Dockerfile b/radio/Dockerfile index ba63119..fd18a17 100644 --- a/radio/Dockerfile +++ b/radio/Dockerfile @@ -1,5 +1,7 @@ -FROM ubuntu:wily -MAINTAINER Fergal Moran "Ferg@lMoran.me" +FROM ubuntu:trusty + +MAINTAINER Manfred Touron "m@42.am" + ENV DEBIAN_FRONTEND noninteractive RUN apt-get -qq -y update && \ @@ -9,6 +11,10 @@ RUN apt-get -qq -y update && \ RUN easy_install supervisor && \ easy_install supervisor-stdout -ADD icecast2/icecast.xml /etc/icecast2/ -ADD default/icecast2 /etc/default/ -ADD supervisord.conf /etc/supervisord.conf +CMD ["/start.sh"] +EXPOSE 8000 +VOLUME ["/config", "/var/log/icecast2", "/etc/icecast2"] + +ADD ./start.sh /start.sh +ADD ./etc /etc +RUN chown -R icecast2 /etc/icecast2 diff --git a/radio/default/icecast2 b/radio/default/icecast2 deleted file mode 100644 index 3a2521f..0000000 --- a/radio/default/icecast2 +++ /dev/null @@ -1,19 +0,0 @@ -# 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/radio/icecast2/icecast.xml b/radio/icecast2/icecast.xml deleted file mode 100755 index b13de92..0000000 --- a/radio/icecast2/icecast.xml +++ /dev/null @@ -1,51 +0,0 @@ - - Cork Like - icemaster@deepsouthsounds.com - - - 100 - 2 - 5 - 524288 - 30 - 15 - 10 - 1 - 65535 - - - - RDzNlgqmj67vk - 9PmUbI1mLne9o - - admin - CrVuP5evoJZ0. - - - radio.deepsouthsounds.com - - - 8351 - /dss - - 1 - - - /usr/share/icecast2 - /var/log/icecast2 - /usr/share/icecast2/web - /usr/share/icecast2/admin - - - - - access.log - error.log - 3 - 10000 - - - - 0 - - diff --git a/radio/supervisord.conf b/radio/supervisord.conf deleted file mode 100644 index be7c901..0000000 --- a/radio/supervisord.conf +++ /dev/null @@ -1,33 +0,0 @@ -[unix_http_server] -file=/tmp/supervisor.sock - -[supervisord] -logfile=/tmp/supervisord.log -logfile_maxbytes=50MB -logfile_backups=10 -loglevel=info -pidfile=/tmp/supervisord.pid -nodaemon=false -minfds=1024 -minprocs=200 -user=icecast2 - -[rpcinterface:supervisor] -supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface - -[supervisorctl] -serverurl=unix:///tmp/supervisor.sock - -[program:icecast2] -user=icecast2 -command=icecast2 -n -c /etc/icecast2/icecast.xml -stopsignal=6 -stdout_events_enabled=true -stderr_events_enabled=true -autorestart=true - -[eventlistener:stdout] -command=supervisor_stdout -buffer_size=100 -events=PROCESS_LOG -result_hander=supervisor_stdout:event_handler diff --git a/rebuild.sh b/rebuild.sh index d1f13d6..dadf9c5 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -2,5 +2,5 @@ export PATH=$PATH:/mnt/bin/ git pull && \ cd dss.web && git pull && cd .. && \ cd dss.api && git pull && cd .. && \ - cd dss.radio && git radio && cd .. && \ + cd dss.radio && git pull && cd .. && \ docker-compose build && docker-compose up $1