Skip to content

Commit

Permalink
add ncpmc
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jun 7, 2015
1 parent 74f66d2 commit e0dab24
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 19 deletions.
8 changes: 6 additions & 2 deletions mpd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Music player daemon
#
# docker run -d \
# --device /dev/snd \
# -v /etc/localtime:/etc/localtime:ro \
# -v $HOME/.mpd:/var/lib/mpd \
# -p 8000:8000 \
# -p 6600:6600 \
# --name mpd \
# jess/mpd
Expand All @@ -13,6 +13,8 @@ MAINTAINER Jessica Frazelle <[email protected]>

RUN apt-get update && apt-get install -y \
mpd \
nfs-common \
sudo \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

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

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

ENV HOME /home/mpd
COPY mpd.conf /etc/mpd.conf
Expand Down
30 changes: 15 additions & 15 deletions mpd/mpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ user "mpd"
# This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card.
#
#group "nogroup"
group "audio"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
Expand Down Expand Up @@ -143,7 +143,7 @@ port "6600"
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
#follow_inside_symlinks "yes"
follow_inside_symlinks "yes"
#
###############################################################################

Expand All @@ -153,12 +153,12 @@ port "6600"
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#
zeroconf_enabled "yes"
#zeroconf_enabled "yes"
#
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#
zeroconf_name "Music Player"
#zeroconf_name "Music Player"
#
###############################################################################

Expand Down Expand Up @@ -208,15 +208,15 @@ input {
#
# An example of an ALSA output:
#
#audio_output {
# type "alsa"
# name "My ALSA Device"
audio_output {
type "alsa"
name "My ALSA Device"
# device "hw:0,0" # optional
# mixer_type "hardware" # optional
# mixer_device "default" # optional
# mixer_control "PCM" # optional
# mixer_index "0" # optional
#}
}
#
# An example of an OSS output:
#
Expand Down Expand Up @@ -266,17 +266,17 @@ input {
#
# An example of a httpd output (built-in HTTP streaming server):
#
audio_output {
type "httpd"
name "mpd"
encoder "vorbis" # optional, vorbis or lame
port "8000"
#audio_output {
# type "httpd"
# name "mpd"
# encoder "vorbis" # optional, vorbis or lame
# port "8000"
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
quality "5.0" # do not define if bitrate is defined
# quality "5.0" # do not define if bitrate is defined
# bitrate "128" # do not define if quality is defined
# format "44100:16:1"
# max_clients "0" # optional 0=no limit
}
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
# Please see README.Debian if you want mpd to play through the pulseaudio
Expand Down
17 changes: 17 additions & 0 deletions ncmpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ncmpc is a fully featured MPD client
# which runs in a terminal (using ncurses)
#
# docker run --rm -it \
# -v /etc/localtime:/etc/localtime:ro \
# --link mpd:mpd \
# jess/ncmpc
#
FROM debian:sid
MAINTAINER Jessica Frazelle <[email protected]>

RUN apt-get update && apt-get install -y \
ncmpc \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

ENTRYPOINT [ "ncmpc" ]
4 changes: 2 additions & 2 deletions pms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# docker run --rm -it \
# -v /etc/localtime:/etc/localtime:ro \
# --device /dev/snd \
# --link mpd:mpd \
# jess/pms
#
FROM debian:sid
Expand All @@ -13,4 +13,4 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

CMD [ "pms" ]
ENTRYPOINT [ "pms" ]

0 comments on commit e0dab24

Please sign in to comment.