Mercurial > code > home > repos > homeauto
diff service/speechMusic/makefile @ 454:ccde9f432e4e
WIP speechmusic to load from http, but pulseaudio out is broken
Ignore-this: 28a41741b1f33114348f5ec6e7b4bef9
author | drewp@bigasterisk.com |
---|---|
date | Fri, 19 Apr 2019 13:51:54 -0700 |
parents | 9fd92202c886 |
children | 7e09c0d0a86e |
line wrap: on
line diff
--- a/service/speechMusic/makefile Fri Apr 19 11:57:51 2019 -0700 +++ b/service/speechMusic/makefile Fri Apr 19 13:51:54 2019 -0700 @@ -23,7 +23,14 @@ docker push ${TAG_PI} shell: build_image - docker run --rm -it --cap-add SYS_PTRACE --net=host -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} /bin/bash + docker run --rm -it \ + --cap-add SYS_PTRACE \ + --name=$(JOB)_shell \ + --mount type=tmpfs,destination=/tmp,tmpfs-size=52428800 \ + --net=host \ + -v /tmp/pulseaudio:/tmp/pulseaudio \ + ${TAG} \ + /bin/bash pactl_test: build_image docker run --rm -it --cap-add SYS_PTRACE --net=host -v /tmp/pulseaudio:/tmp/pulseaudio ${TAG} pactl stat @@ -37,12 +44,12 @@ local_run: build_image docker run --rm -it -p ${PORT}:${PORT} \ - -v `pwd`:/mnt \ --name=$(JOB)_local \ --net=host \ + --mount type=tmpfs,destination=/sounds,tmpfs-size=52428800 \ -v /tmp/pulseaudio:/tmp/pulseaudio \ ${TAG} \ - python /mnt/speechMusic.py -v + python speechMusic.py -v local_run_strace: build_image docker run --rm -it -p ${PORT}:${PORT} \ @@ -50,8 +57,8 @@ --name=$(JOB)_local \ --net=host \ -v /tmp/pulseaudio:/tmp/pulseaudio \ + --mount type=tmpfs,destination=/sounds,tmpfs-size=52428800 \ --cap-add SYS_PTRACE \ - -e SDL_AUDIOSERVER=pulse \ ${TAG} \ strace -f -tts 200 python /mnt/speechMusic.py -v