This commit is contained in:
bel
2021-09-14 06:44:17 -06:00
commit c5fa6baecd
22 changed files with 828 additions and 0 deletions

57
rompr/build_and_run.sh Executable file
View File

@@ -0,0 +1,57 @@
#! /bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
set -e
set -u
function clean() {
docker rm -f \
mpd \
ympd
}
trap clean EXIT
# network
docker network create podcastnet || true
# mpd // server
mkdir -p mpd-mnt/{media,playlists,db}
mkdir -p mpd-mnt/playlists
touch mpd-mnt/conf
docker run --rm -d \
--name mpd \
-p 6501-6510:6501-6510 \
-v $PWD/mpd-mnt/conf:/etc/mpd.conf \
-v $PWD/mpd-mnt/playlists:/playlists \
-v $PWD/mpd-mnt/media:/media \
-v $PWD/mpd-mnt/db:/db \
--network podcastnet \
--net-alias mpd \
vimagick/mpd
# --device /dev/snd
#-v $PWD/mpd-mnt/media:/var/lib/mpd/music \
#-v $PWD/mpd-mnt/playlists:/var/lib/mpd/playlists \
for cmd in "update" "repeat on" "random on" "clear" "play"; do
docker exec -i mpd mpc $cmd
done
## rompr // remote1
#docker run --rm -d \
# --name rompr \
# -p 8801:80 \
# --network podcastnet \
# --net-alias rompr.rompr \
# rawdlite/rompr
# ympd // remoteA
docker run --rm -d \
--name ympd \
-p 4041:8080 \
--network podcastnet \
--net-alias ympd \
vitiman/alpine-ympd
read -p "Enter when done..." asf

37
rompr/mpd-mnt/conf Executable file
View File

@@ -0,0 +1,37 @@
db_file "/db/database"
music_directory "/media"
playlist_directory "/playlists"
auto_update "yes"
audio_output {
type "httpd"
name "Mpd_Ogg"
encoder "vorbis" # optional, vorbis or lame
port "6501"
quality "5.0" # do not define if bitrate is defined
max_clients "0" # optional 0=no limit
}
audio_output {
type "httpd"
name "Mpd_Wav"
encoder "wave"
port "6502"
}
audio_output {
type "httpd"
name "Mpd_Flac"
encoder "flac"
port "6503"
format "44100:16:2"
}
audio_output {
type "httpd"
name "Mpd_Lame"
encoder "lame"
port "6504"
bitrate "128"
}

BIN
rompr/mpd-mnt/db/database Executable file

Binary file not shown.

2
rompr/mpd-mnt/playlists/a.m3u Executable file
View File

@@ -0,0 +1,2 @@
03 - 1985.mp3
03 - 1985.mp3