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