Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion icecast/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV LANG en_US.UTF-8

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y build-essential wget libxslt1-dev libvorbis-dev git
RUN apt-get install -y build-essential wget libxslt1-dev libvorbis-dev git logrotate
RUN apt-get clean

RUN git clone https://github.com/karlheyes/icecast-kh.git
Expand All @@ -18,6 +18,8 @@ ADD icecast.xml /icecast.xml
RUN useradd --create-home -s /bin/bash icecast
RUN chown icecast:users /icecast.xml

ADD icecast.conf /etc/logrotate.d/icecast.conf

RUN mkdir -p /usr/local/share/icecast/
RUN mkdir -p /usr/local/share/icecast/logs
RUN mkdir -p /usr/local/share/icecast/web
Expand Down
12 changes: 12 additions & 0 deletions icecast/icecast.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/usr/local/share/icecast/logs/*.log {
daily
rotate 4
size 50M
compress
delaycompress
sharedscripts
notifempty
postrotate
kill -HUP `cat /usr/local/share/icecast/icecast.pid`
endscript
}
2 changes: 1 addition & 1 deletion icecast/icecast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<logdir>/usr/local/share/icecast/logs</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->
<pidfile>/usr/local/share/icecast/icecast.pid</pidfile>
<!-- <ssl_certificate>/usr/local/share/icecast/icecast.pem</ssl_certificate> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
Expand Down