-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9d6ac27
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |