mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add cmus
This commit is contained in:
parent
49ee38b8b5
commit
cc6d0cdd75
@ -104,6 +104,8 @@ A collection of delicious docker recipes.
|
||||
|
||||
## Media
|
||||
|
||||
- [x] cmus
|
||||
- [x] cmus-arm
|
||||
- [x] ffmpeg
|
||||
- [x] ffmpeg-arm
|
||||
- [x] ffserver :beetle:
|
||||
|
21
cmus/Dockerfile
Normal file
21
cmus/Dockerfile
Normal file
@ -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
|
41
cmus/README.md
Normal file
41
cmus/README.md
Normal file
@ -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/
|
21
cmus/arm/Dockerfile
Normal file
21
cmus/arm/Dockerfile
Normal file
@ -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
|
13
cmus/arm/docker-compose.yml
Normal file
13
cmus/arm/docker-compose.yml
Normal file
@ -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
|
13
cmus/docker-compose.yml
Normal file
13
cmus/docker-compose.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user