Skip to content

Commit 707befd

Browse files
committedJun 7, 2015
add ncpmc
Signed-off-by: Jessica Frazelle <[email protected]>
1 parent 29b458b commit 707befd

File tree

4 files changed

+40
-19
lines changed

4 files changed

+40
-19
lines changed
 

‎mpd/Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Music player daemon
22
#
33
# docker run -d \
4+
# --device /dev/snd \
45
# -v /etc/localtime:/etc/localtime:ro \
56
# -v $HOME/.mpd:/var/lib/mpd \
6-
# -p 8000:8000 \
77
# -p 6600:6600 \
88
# --name mpd \
99
# jess/mpd
@@ -13,6 +13,8 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
1313

1414
RUN apt-get update && apt-get install -y \
1515
mpd \
16+
nfs-common \
17+
sudo \
1618
--no-install-recommends \
1719
&& rm -rf /var/lib/apt/lists/*
1820

@@ -23,7 +25,9 @@ run mkdir -p /var/lib/mpd/playlists \
2325
&& chmod 0777 -R /var/lib/mpd \
2426
&& chown -R mpd /var/lib/mpd
2527

26-
EXPOSE 6600 8000
28+
# my user needs the ability to mount
29+
# because my music is in nfs mount
30+
RUN echo "mpd ALL=NOPASSWD: /usr/bin/mount, /sbin/mount.nfs, /usr/bin/umount" >> /etc/sudoers
2731

2832
ENV HOME /home/mpd
2933
COPY mpd.conf /etc/mpd.conf

‎mpd/mpd.conf

+15-15
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ user "mpd"
7272
# This is useful if MPD needs to be a member of group such as "audio" to
7373
# have permission to use sound card.
7474
#
75-
#group "nogroup"
75+
group "audio"
7676
#
7777
# This setting sets the address for the daemon to listen on. Careful attention
7878
# should be paid if this is assigned to anything other then the default, any.
@@ -143,7 +143,7 @@ port "6600"
143143
# If this setting is set to "yes", MPD will discover audio files by following
144144
# symbolic links inside of the configured music_directory.
145145
#
146-
#follow_inside_symlinks "yes"
146+
follow_inside_symlinks "yes"
147147
#
148148
###############################################################################
149149

@@ -153,12 +153,12 @@ port "6600"
153153
# If this setting is set to "yes", service information will be published with
154154
# Zeroconf / Avahi.
155155
#
156-
zeroconf_enabled "yes"
156+
#zeroconf_enabled "yes"
157157
#
158158
# The argument to this setting will be the Zeroconf / Avahi unique name for
159159
# this MPD server on the network.
160160
#
161-
zeroconf_name "Music Player"
161+
#zeroconf_name "Music Player"
162162
#
163163
###############################################################################
164164

@@ -208,15 +208,15 @@ input {
208208
#
209209
# An example of an ALSA output:
210210
#
211-
#audio_output {
212-
# type "alsa"
213-
# name "My ALSA Device"
211+
audio_output {
212+
type "alsa"
213+
name "My ALSA Device"
214214
# device "hw:0,0" # optional
215215
# mixer_type "hardware" # optional
216216
# mixer_device "default" # optional
217217
# mixer_control "PCM" # optional
218218
# mixer_index "0" # optional
219-
#}
219+
}
220220
#
221221
# An example of an OSS output:
222222
#
@@ -266,17 +266,17 @@ input {
266266
#
267267
# An example of a httpd output (built-in HTTP streaming server):
268268
#
269-
audio_output {
270-
type "httpd"
271-
name "mpd"
272-
encoder "vorbis" # optional, vorbis or lame
273-
port "8000"
269+
#audio_output {
270+
# type "httpd"
271+
# name "mpd"
272+
# encoder "vorbis" # optional, vorbis or lame
273+
# port "8000"
274274
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
275-
quality "5.0" # do not define if bitrate is defined
275+
# quality "5.0" # do not define if bitrate is defined
276276
# bitrate "128" # do not define if quality is defined
277277
# format "44100:16:1"
278278
# max_clients "0" # optional 0=no limit
279-
}
279+
#}
280280
#
281281
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
282282
# Please see README.Debian if you want mpd to play through the pulseaudio

‎ncmpc/Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ncmpc is a fully featured MPD client
2+
# which runs in a terminal (using ncurses)
3+
#
4+
# docker run --rm -it \
5+
# -v /etc/localtime:/etc/localtime:ro \
6+
# --link mpd:mpd \
7+
# jess/ncmpc
8+
#
9+
FROM debian:sid
10+
MAINTAINER Jessica Frazelle <jess@docker.com>
11+
12+
RUN apt-get update && apt-get install -y \
13+
ncmpc \
14+
--no-install-recommends \
15+
&& rm -rf /var/lib/apt/lists/*
16+
17+
ENTRYPOINT [ "ncmpc" ]

‎pms/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# docker run --rm -it \
44
# -v /etc/localtime:/etc/localtime:ro \
5-
# --device /dev/snd \
5+
# --link mpd:mpd \
66
# jess/pms
77
#
88
FROM debian:sid
@@ -13,4 +13,4 @@ RUN apt-get update && apt-get install -y \
1313
--no-install-recommends \
1414
&& rm -rf /var/lib/apt/lists/*
1515

16-
CMD [ "pms" ]
16+
ENTRYPOINT [ "pms" ]

0 commit comments

Comments
 (0)
Please sign in to comment.