diff --git a/mpd/Dockerfile b/mpd/Dockerfile index aa34b4b..752f682 100644 --- a/mpd/Dockerfile +++ b/mpd/Dockerfile @@ -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 @@ -13,6 +13,8 @@ MAINTAINER Jessica Frazelle RUN apt-get update && apt-get install -y \ mpd \ + nfs-common \ + sudo \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* @@ -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 diff --git a/mpd/mpd.conf b/mpd/mpd.conf index a9de6d4..1bc61a2 100644 --- a/mpd/mpd.conf +++ b/mpd/mpd.conf @@ -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. @@ -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" # ############################################################################### @@ -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" # ############################################################################### @@ -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: # @@ -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 diff --git a/ncmpc/Dockerfile b/ncmpc/Dockerfile new file mode 100644 index 0000000..b0d6e8b --- /dev/null +++ b/ncmpc/Dockerfile @@ -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 + +RUN apt-get update && apt-get install -y \ + ncmpc \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +ENTRYPOINT [ "ncmpc" ] diff --git a/pms/Dockerfile b/pms/Dockerfile index b7b004a..cc0d9d3 100644 --- a/pms/Dockerfile +++ b/pms/Dockerfile @@ -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 @@ -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" ]