Hopefully get sound ALSA on airsonic

This commit is contained in:
Nemo 2018-02-19 21:37:02 +05:30
parent a24610ff4e
commit 08caa8086b
2 changed files with 15 additions and 0 deletions

View File

@ -5,11 +5,21 @@ resource "docker_container" "airsonic" {
destroy_grace_seconds = 30
must_run = true
# Unfortunately, the --device flag is not yet supported
# in docker/terraform:
# https://github.com/terraform-providers/terraform-provider-docker/issues/30
upload {
content = "${data.template_file.airsonic-properties-file.rendered}"
file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/airsonic.properties"
}
# This lets the Jukebox use ALSA
upload {
content = "${file("${path.module}/conf/airsonic.sound.properties")}"
file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/sound.properties"
}
volumes {
host_path = "/mnt/xwing/config/airsonic/data"
container_path = "/config"

View File

@ -0,0 +1,5 @@
# https://airsonic.github.io/docs/jukebox/
javax.sound.sampled.Clip=#PCH [plughw:1,0]
javax.sound.sampled.Port=#Port PCH [hw:1]
javax.sound.sampled.SourceDataLine=#PCH [plughw:1,0]
javax.sound.sampled.TargetDataLine=#PCH [plughw:1,0]