add ncpmc

Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
Jessica Frazelle 2015-06-07 00:34:24 -07:00
parent 29b458b672
commit 707befd101
4 changed files with 40 additions and 19 deletions

View File

@ -1,9 +1,9 @@
# Music player daemon # Music player daemon
# #
# docker run -d \ # docker run -d \
# --device /dev/snd \
# -v /etc/localtime:/etc/localtime:ro \ # -v /etc/localtime:/etc/localtime:ro \
# -v $HOME/.mpd:/var/lib/mpd \ # -v $HOME/.mpd:/var/lib/mpd \
# -p 8000:8000 \
# -p 6600:6600 \ # -p 6600:6600 \
# --name mpd \ # --name mpd \
# jess/mpd # jess/mpd
@ -13,6 +13,8 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
mpd \ mpd \
nfs-common \
sudo \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@ -23,7 +25,9 @@ run mkdir -p /var/lib/mpd/playlists \
&& chmod 0777 -R /var/lib/mpd \ && chmod 0777 -R /var/lib/mpd \
&& chown -R mpd /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 ENV HOME /home/mpd
COPY mpd.conf /etc/mpd.conf COPY mpd.conf /etc/mpd.conf

View File

@ -72,7 +72,7 @@ user "mpd"
# This is useful if MPD needs to be a member of group such as "audio" to # This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card. # have permission to use sound card.
# #
#group "nogroup" group "audio"
# #
# This setting sets the address for the daemon to listen on. Careful attention # 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. # should be paid if this is assigned to anything other then the default, any.
@ -143,7 +143,7 @@ port "6600"
# If this setting is set to "yes", MPD will discover audio files by following # If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory. # symbolic links inside of the configured music_directory.
# #
#follow_inside_symlinks "yes" follow_inside_symlinks "yes"
# #
############################################################################### ###############################################################################
@ -153,12 +153,12 @@ port "6600"
# If this setting is set to "yes", service information will be published with # If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi. # Zeroconf / Avahi.
# #
zeroconf_enabled "yes" #zeroconf_enabled "yes"
# #
# The argument to this setting will be the Zeroconf / Avahi unique name for # The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network. # this MPD server on the network.
# #
zeroconf_name "Music Player" #zeroconf_name "Music Player"
# #
############################################################################### ###############################################################################
@ -208,15 +208,15 @@ input {
# #
# An example of an ALSA output: # An example of an ALSA output:
# #
#audio_output { audio_output {
# type "alsa" type "alsa"
# name "My ALSA Device" name "My ALSA Device"
# device "hw:0,0" # optional # device "hw:0,0" # optional
# mixer_type "hardware" # optional # mixer_type "hardware" # optional
# mixer_device "default" # optional # mixer_device "default" # optional
# mixer_control "PCM" # optional # mixer_control "PCM" # optional
# mixer_index "0" # optional # mixer_index "0" # optional
#} }
# #
# An example of an OSS output: # An example of an OSS output:
# #
@ -266,17 +266,17 @@ input {
# #
# An example of a httpd output (built-in HTTP streaming server): # An example of a httpd output (built-in HTTP streaming server):
# #
audio_output { #audio_output {
type "httpd" # type "httpd"
name "mpd" # name "mpd"
encoder "vorbis" # optional, vorbis or lame # encoder "vorbis" # optional, vorbis or lame
port "8000" # port "8000"
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6 # 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 # bitrate "128" # do not define if quality is defined
# format "44100:16:1" # format "44100:16:1"
# max_clients "0" # optional 0=no limit # max_clients "0" # optional 0=no limit
} #}
# #
# An example of a pulseaudio output (streaming to a remote pulseaudio server) # 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 # Please see README.Debian if you want mpd to play through the pulseaudio

17
ncmpc/Dockerfile Normal file
View File

@ -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 <jess@docker.com>
RUN apt-get update && apt-get install -y \
ncmpc \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT [ "ncmpc" ]

View File

@ -2,7 +2,7 @@
# #
# docker run --rm -it \ # docker run --rm -it \
# -v /etc/localtime:/etc/localtime:ro \ # -v /etc/localtime:/etc/localtime:ro \
# --device /dev/snd \ # --link mpd:mpd \
# jess/pms # jess/pms
# #
FROM debian:sid FROM debian:sid
@ -13,4 +13,4 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
CMD [ "pms" ] ENTRYPOINT [ "pms" ]