Mercurial > code > home > repos > homeauto
diff service/playSound/Dockerfile @ 666:91d17a68c21b
drop speech synth, try to get pulse client working
Ignore-this: f032ddd2169cbb668c11ed7d48f7de23
author | drewp@bigasterisk.com |
---|---|
date | Thu, 19 Dec 2019 17:33:24 -0800 |
parents | 28cc07978a71 |
children | aaabba10ce04 |
line wrap: on
line diff
--- a/service/playSound/Dockerfile Mon Aug 12 16:47:24 2019 -0700 +++ b/service/playSound/Dockerfile Thu Dec 19 17:33:24 2019 -0800 @@ -3,25 +3,35 @@ WORKDIR /opt - apt install libsdl-mixer-dev - apt install libsdl-mixer1.2-dev -wget https://www.pygame.org/ftp/pygame-1.9.6.tar.gz - 34 tar xvzf pygame-1.9.6.tar.gz - 35 cd pygame-1.9.6 - python3 setup.py install -python3 -c 'import pygame; print(pygame.__version__, pygame.__file__); pygame.mixer.init()' +#RUN apt-get install -y libsdl-mixer-dev libsdl-mixer1.2-dev +# wget https://www.pygame.org/ftp/pygame-1.9.6.tar.gz +# 34 tar xvzf pygame-1.9.6.tar.gz +# 35 cd pygame-1.9.6 +# python3 setup.py install +# python3 -c 'import pygame; print(pygame.__version__, pygame.__file__); pygame.mixer.init()' RUN touch need-new-update RUN apt-get update -RUN apt-get install --yes libopenal1 libogg0 pulseaudio-utils festival sox python-pygame +RUN apt-get install --yes libopenal1 libogg0 pulseaudio-utils python-pygame COPY requirements.txt ./ RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt ENV SDL_AUDIODRIVER pulse -ENV PULSE_SERVER /tmp/pulseaudio COPY pulse-client.conf /etc/pulse/client.conf -COPY *.py req* *.jade ./ +COPY *.py ./ + +# ENV UNAME pulseuser +# RUN export UNAME=$UNAME UID=501 GID=501 && \ +# mkdir -p "/home/${UNAME}" && \ +# echo "${UNAME}:x:${UID}:${GID}:${UNAME} User,,,:/home/${UNAME}:/bin/bash" >> /etc/passwd && \ +# echo "${UNAME}:x:${UID}:" >> /etc/group && \ +# mkdir -p /etc/sudoers.d && \ +# echo "${UNAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${UNAME} && \ +# chmod 0440 /etc/sudoers.d/${UNAME} && \ +# chown ${UID}:${GID} -R /home/${UNAME} && \ +# gpasswd -a ${UNAME} audio +# USER $UNAME EXPOSE 9049