From 8a4fb89c016a14cc9e6253dab1aff028dfa50696 Mon Sep 17 00:00:00 2001 From: kev Date: Mon, 18 Oct 2021 12:06:54 +0800 Subject: [PATCH] update --- ffmpeg/Dockerfile | 4 +- ffmpeg/arm/Dockerfile | 2 +- fteproxy/Dockerfile | 10 +- fteproxy/arm/Dockerfile | 10 +- icecast/Dockerfile | 8 +- icecast/README.md | 20 ++- icecast/arm/Dockerfile | 10 +- icecast/arm/docker-compose.yml | 15 +- icecast/data/etc/icecast.xml | 242 +++++++++++++++++++++++++++++++++ icecast/docker-compose.yml | 15 +- 10 files changed, 305 insertions(+), 31 deletions(-) create mode 100644 icecast/data/etc/icecast.xml diff --git a/ffmpeg/Dockerfile b/ffmpeg/Dockerfile index 7c230e1..ad1c51a 100644 --- a/ffmpeg/Dockerfile +++ b/ffmpeg/Dockerfile @@ -2,8 +2,8 @@ # Dockerfile for ffmpeg # -FROM alpine -MAINTAINER kev +FROM alpine:3 +MAINTAINER EasyPi Software Foundation RUN apk add --no-cache ffmpeg diff --git a/ffmpeg/arm/Dockerfile b/ffmpeg/arm/Dockerfile index c8b34d0..e40dddd 100644 --- a/ffmpeg/arm/Dockerfile +++ b/ffmpeg/arm/Dockerfile @@ -2,7 +2,7 @@ # Dockerfile for ffmpeg-arm # -FROM arm32v7/alpine:3 +FROM alpine:3 MAINTAINER EasyPi Software Foundation RUN apk add --no-cache ffmpeg diff --git a/fteproxy/Dockerfile b/fteproxy/Dockerfile index 8cf30cf..053ca11 100644 --- a/fteproxy/Dockerfile +++ b/fteproxy/Dockerfile @@ -7,16 +7,18 @@ MAINTAINER EasyPi Software Foundation RUN set -xe \ && apk add -U build-base \ + curl \ gmp \ gmp-dev \ libstdc++ \ - python \ - python-dev \ - py-pip \ + python2 \ + python2-dev \ + && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python \ && pip install --no-cache-dir fteproxy \ && apk del build-base \ + curl \ gmp-dev \ - python-dev \ + python2-dev \ && rm -rf /root/.cache /var/cache/apk/* ENV MODE=server diff --git a/fteproxy/arm/Dockerfile b/fteproxy/arm/Dockerfile index ab48e67..3712955 100644 --- a/fteproxy/arm/Dockerfile +++ b/fteproxy/arm/Dockerfile @@ -7,16 +7,18 @@ MAINTAINER EasyPi Software Foundation RUN set -xe \ && apk add -U build-base \ + curl \ gmp \ gmp-dev \ libstdc++ \ - python \ - python-dev \ - py-pip \ + python2 \ + python2-dev \ + && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python \ && pip install --no-cache-dir fteproxy \ && apk del build-base \ + curl \ gmp-dev \ - python-dev \ + python2-dev \ && rm -rf /root/.cache /var/cache/apk/* ENV MODE=server diff --git a/icecast/Dockerfile b/icecast/Dockerfile index d70a852..4b73e05 100644 --- a/icecast/Dockerfile +++ b/icecast/Dockerfile @@ -6,8 +6,12 @@ FROM alpine:3 MAINTAINER EasyPi Software Foundation -RUN apk add --no-cache icecast +RUN set -xe \ + && apk add --no-cache icecast \ + && mkdir -p /etc/icecast \ + && mv /etc/icecast.xml /etc/icecast \ + && icecast --version EXPOSE 8000 -CMD ["icecast", "-c", "/etc/icecast.xml"] +CMD ["icecast", "-c", "/etc/icecast/icecast.xml"] diff --git a/icecast/README.md b/icecast/README.md index 8d8fd0a..e7d0576 100644 --- a/icecast/README.md +++ b/icecast/README.md @@ -7,16 +7,25 @@ by the Xiph.org Foundation. ## docker-compose.yml ```yaml -icecast: - image: vimagick/icecast - ports: - - "8000:8000" - restart: always +version: "3.8" +services: + icecast: + image: vimagick/icecast + ports: + - "8000:8000" + volumes: + # ./data/etc:/etc/icecast:ro + - ./data/log:/var/log/icecast:rw + restart: unless-stopped ``` +> You can mount custom config file: [icecast.xml][2] + ## Server Setup ```bash +$ mkdir -p data/{etc,log} +$ chmod -R 777 data/log $ docker-compose up -d ``` @@ -26,3 +35,4 @@ $ docker-compose up -d - MacOS: butt [1]: http://icecast.org/ +[2]: https://github.com/xiph/Icecast-Server/tree/master/conf diff --git a/icecast/arm/Dockerfile b/icecast/arm/Dockerfile index 419b668..1a46f7e 100644 --- a/icecast/arm/Dockerfile +++ b/icecast/arm/Dockerfile @@ -2,12 +2,16 @@ # Dockerfile for icecast-arm # -FROM arm32v7/alpine:3 +FROM alpine:3 MAINTAINER EasyPi Software Foundation -RUN apk add --no-cache icecast +RUN set -xe \ + && apk add --no-cache icecast \ + && mkdir -p /etc/icecast \ + && mv /etc/icecast.xml /etc/icecast \ + && icecast --version EXPOSE 8000 -CMD ["icecast", "-c", "/etc/icecast.xml"] +CMD ["icecast", "-c", "/etc/icecast/icecast.xml"] diff --git a/icecast/arm/docker-compose.yml b/icecast/arm/docker-compose.yml index 41badde..6bb0e00 100644 --- a/icecast/arm/docker-compose.yml +++ b/icecast/arm/docker-compose.yml @@ -1,5 +1,10 @@ -icecast: - image: easypi/icecast-arm - ports: - - "8000:8000" - restart: unless-stopped +version: "3.8" +services: + icecast: + image: vimagick/icecast-arm + ports: + - "8000:8000" + volumes: + # ./data/etc:/etc/icecast:ro + - ./data/log:/var/log/icecast:rw + restart: unless-stopped diff --git a/icecast/data/etc/icecast.xml b/icecast/data/etc/icecast.xml new file mode 100644 index 0000000..8cf818a --- /dev/null +++ b/icecast/data/etc/icecast.xml @@ -0,0 +1,242 @@ + + + Earth + icemaster@localhost + + + + + 100 + 2 + 524288 + 30 + 15 + 10 + + 1 + + 65535 + + + + + hackme + + hackme + + + admin + hackme + + + + + + + + + localhost + + + + 8000 + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + /usr/share/icecast + + + /var/log/icecast + /usr/share/icecast/web + /usr/share/icecast/admin + + + + + + + + + + + access.log + error.log + + 3 + 10000 + + + + + + 0 + + icecast + icecast + + + diff --git a/icecast/docker-compose.yml b/icecast/docker-compose.yml index e0ad8f4..96d8257 100644 --- a/icecast/docker-compose.yml +++ b/icecast/docker-compose.yml @@ -1,5 +1,10 @@ -icecast: - image: vimagick/icecast - ports: - - "8000:8000" - restart: unless-stopped +version: "3.8" +services: + icecast: + image: vimagick/icecast + ports: + - "8000:8000" + volumes: + # ./data/etc:/etc/icecast:ro + - ./data/log:/var/log/icecast:rw + restart: unless-stopped