This container provides Icecast to consolidate the streams from https://github.com/deadlypantsd/pianobar_docker containers.
I needed a way to connect multiple media_player
entities to a stream source that wouldnt have different sync times. Playing from the same online source would be 1/2 a second or more before/after on one media_player
versus another one. Sounded. Like. Crap. So, this was the easy button.
Build the image with the following command:
# docker build https://github.com/deadlypantsd/icecast_docker/Dockerfile -t <imagename>
<imagename>
can be anything... but I would suggest 'icecast_server'.
Create the container. I find the commandline to be much easier.
We need to set the container --privileged
for running init scripts (the icecast service). Appending /usr/bin/init
allows our icecast init script to run in the container.
# docker run -ti -d --privileged --name Icecast-Server --rm -p 8080:8080 icecast_server /usr/bin/init