forked from jessfraz/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jessica Frazelle <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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/* | ||
|
||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters