pulseaudio and video are now properly functioning

This commit is contained in:
Andy 2016-04-08 17:02:43 +02:00
parent ca21c8e949
commit de1d8a67a5
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC
2 changed files with 15 additions and 1 deletions

View File

@ -60,6 +60,17 @@ RUN mkdir -p /opt/java/64 \
&& update-alternatives --set javaws /opt/java/64/jre/bin/javaws \ && update-alternatives --set javaws /opt/java/64/jre/bin/javaws \
&& rm -f /tmp/jre-linux-x64.tar.gz && rm -f /tmp/jre-linux-x64.tar.gz
# For testing the audio
# docker-compose run --rm --entrypoint /bin/bash firefox
# aplay -L
# pactl list
# arecord -D pulse -f cd | aplay -D pulse -B 10000 -
# RUN apt-get update && apt-get install -y alsa-utils
#
# WebRTC online test for Microphone, Camera, Network, Connectivity and Throughput
# https://test.webrtc.org/
# https://webaudiodemos.appspot.com/AudioRecorder/index.html
# -- Define a user under which the firefox will be running # -- Define a user under which the firefox will be running
ENV USER user ENV USER user
ENV UID 1000 ENV UID 1000

View File

@ -26,6 +26,7 @@ services:
- isolated - isolated
devices: devices:
- /dev/dri - /dev/dri
- /dev/video0
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix - /tmp/.X11-unix:/tmp/.X11-unix
- /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:ro - /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines:ro
@ -35,11 +36,13 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/machine-id:/etc/machine-id:ro - /etc/machine-id:/etc/machine-id:ro
- /run/user/1000/pulse:/run/user/1000/pulse - /run/user/1000/pulse:/run/user/1000/pulse
- /dev/shm:/dev/shm:ro
# - /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro # - /tmp/krb5cc_1000:/tmp/krb5cc_1000:ro
# - $HOME/.mozilla:/home/firefox/.mozilla # - $HOME/.mozilla:/home/firefox/.mozilla
- data:/home/user/.mozilla - data:/home/user/.mozilla
- $HOME/Downloads:/home/user/Downloads - $HOME/Downloads:/home/user/Downloads
environment: environment:
DISPLAY: unix$DISPLAY - DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:/run/user/1000/pulse/native
depends_on: depends_on:
- preseed - preseed