Skip to content

Commit

Permalink
set up all docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
pcbowers committed Apr 12, 2021
0 parents commit 9d6ac27
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y curl libogg0 openssl gettext-base

RUN curl -sLO https://www.rocketbroadcaster.com/streaming-audio-server/downloads/ubuntu-20.04/rsas_0.1.18-1_amd64.deb
RUN dpkg -i *.deb

COPY old.xml .
COPY start.sh .

CMD ["./start.sh"]

EXPOSE 8001

13 changes: 13 additions & 0 deletions old.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<icecast>
<listen-socket>
<port>8001</port>
<bind-address>0.0.0.0</bind-address>
</listen-socket>

<mount>
<mount-name>$ICECAST_MOUNT</mount-name>
<username>$ICECAST_USERNAME</username>
<password>$ICECAST_PASSWORD</username>
</mount>
</icecast>

8 changes: 8 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
ICECAST_MOUNT="${ICECAST_MOUNT:-/example}"
ICECAST_USERNAME="${ICECAST_USERNAME:-user}"
ICECAST_PASSWORD="${ICECAST_PASSWORD:-password}"

envsubst < old.xml > new.xml

rsas -c new.xml

0 comments on commit 9d6ac27

Please sign in to comment.