Skip to content

Commit f637aa1

Browse files
committedJan 31, 2014
wip
1 parent 6e69299 commit f637aa1

18 files changed

+32
-14
lines changed
 

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*~
2+
*#
3+
.#*

‎Dockerfile

+8-7
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ ENV DEBIAN_FRONTEND noninteractive
66

77
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
88
RUN apt-get -qq -y update && \
9-
apt-get -qq -y install icecast2 && \
9+
apt-get -qq -y install icecast2 python-setuptools && \
1010
apt-get clean
1111

12-
ENTRYPOINT ["/init.sh"]
13-
EXPOSE 8000
12+
RUN easy_install supervisor
1413

15-
ADD ./init.sh /init.sh
16-
ADD ./config /config
17-
RUN chown icecast2 /config
18-
USER icecast2
14+
CMD ["supervisord", "-n", "-c", "/etc/supervisord.conf"]
15+
EXPOSE 8000
16+
VOLUME ["/config"]
1917

18+
ADD ./etc /etc
19+
RUN chown icecast2 /etc/icecast2
20+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎etc/supervisord.conf

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[unix_http_server]
2+
file=/tmp/supervisor.sock
3+
4+
[supervisord]
5+
logfile=/tmp/supervisord.log
6+
logfile_maxbytes=50MB
7+
logfile_backups=10
8+
loglevel=info
9+
pidfile=/tmp/supervisord.pid
10+
nodaemon=false
11+
minfds=1024
12+
minprocs=200
13+
14+
[rpcinterface:supervisor]
15+
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
16+
17+
[supervisorctl]
18+
serverurl=unix:///tmp/supervisor.sock
19+
20+
[program:icecast2]
21+
command = icecast2 -b -c /etc/icecast2/icecast.xml

‎init.sh

-7
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.