From cc6d0cdd75521f0224bd3532478ce616a933b0cd Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 29 Apr 2017 10:18:23 +0800 Subject: [PATCH] add cmus --- README.md | 2 ++ cmus/Dockerfile | 21 +++++++++++++++++++ cmus/README.md | 41 +++++++++++++++++++++++++++++++++++++ cmus/arm/Dockerfile | 21 +++++++++++++++++++ cmus/arm/docker-compose.yml | 13 ++++++++++++ cmus/docker-compose.yml | 13 ++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 cmus/Dockerfile create mode 100644 cmus/README.md create mode 100644 cmus/arm/Dockerfile create mode 100644 cmus/arm/docker-compose.yml create mode 100644 cmus/docker-compose.yml diff --git a/README.md b/README.md index 3208293..a3dbdd7 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,8 @@ A collection of delicious docker recipes. ## Media +- [x] cmus +- [x] cmus-arm - [x] ffmpeg - [x] ffmpeg-arm - [x] ffserver :beetle: diff --git a/cmus/Dockerfile b/cmus/Dockerfile new file mode 100644 index 0000000..685cf32 --- /dev/null +++ b/cmus/Dockerfile @@ -0,0 +1,21 @@ +# +# Dockerfile for cmus +# + +FROM alpine +MAINTAINER EasyPi Software Foundation + +RUN apk add --no-cache cmus + +VOLUME /root/.cmus +WORKDIR /root/.cmus + +ENV CMUS_SOCKET=0.0.0.0:3000 +ENV USERNAME=root +ENV PASSWORD=secret + +EXPOSE 3000 + +CMD set -xe \ + && echo "set passwd=$PASSWORD" > rc \ + && cmus diff --git a/cmus/README.md b/cmus/README.md new file mode 100644 index 0000000..0b279d9 --- /dev/null +++ b/cmus/README.md @@ -0,0 +1,41 @@ +cmus +==== + +[cmus][1] is a small, fast and powerful console music player for Unix-like operating systems. + + +## docker-compose.yml + +```yaml +cmus: + image: vimagick/cmus + ports: + - "3000:3000" + volumes: + - ./data:/root/.cmus + - ~/music:/root/music + devices: + - /dev/snd + environment: + - PASSWORD=secret + tty: yes + restart: unless-stopped +``` + +## up and running + +```bash +$ docker-compose up -d +$ docker-compose exec cmus cmus-remote --help +$ docker-compose exec cmus cmus-remote --passwd secret +>>> clear +>>> add ~/music +>>> set continue=true +>>> set repeat=true +>>> set shuffle=true +>>> set resume=true +>>> player-play +>>> ^D +``` + +[1]: https://cmus.github.io/ diff --git a/cmus/arm/Dockerfile b/cmus/arm/Dockerfile new file mode 100644 index 0000000..e5e6272 --- /dev/null +++ b/cmus/arm/Dockerfile @@ -0,0 +1,21 @@ +# +# Dockerfile for cmus-arm +# + +FROM easypi/alpine-arm +MAINTAINER EasyPi Software Foundation + +RUN apk add --no-cache cmus + +VOLUME /root/.cmus +WORKDIR /root/.cmus + +ENV CMUS_SOCKET=0.0.0.0:3000 +ENV USERNAME=root +ENV PASSWORD=secret + +EXPOSE 3000 + +CMD set -xe \ + && echo "set passwd=$PASSWORD" > rc \ + && cmus diff --git a/cmus/arm/docker-compose.yml b/cmus/arm/docker-compose.yml new file mode 100644 index 0000000..88c1fb0 --- /dev/null +++ b/cmus/arm/docker-compose.yml @@ -0,0 +1,13 @@ +cmus: + image: easypi/cmus-arm + ports: + - "3000:3000" + volumes: + - ./data:/root/.cmus + - ~/music:/root/music + devices: + - /dev/snd + environment: + - PASSWORD=secret + tty: yes + restart: unless-stopped diff --git a/cmus/docker-compose.yml b/cmus/docker-compose.yml new file mode 100644 index 0000000..9f356bf --- /dev/null +++ b/cmus/docker-compose.yml @@ -0,0 +1,13 @@ +cmus: + image: vimagick/cmus + ports: + - "3000:3000" + volumes: + - ./data:/root/.cmus + - ~/music:/root/music + devices: + - /dev/snd + environment: + - PASSWORD=secret + tty: yes + restart: unless-stopped