audio
This commit is contained in:
parent
b15f354e1b
commit
930c8f546c
2 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,13 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk add xorg-server xf86-input-libinput eudev xspice supervisor firefox pulseaudio pulseaudio-alsa alsa-plugins-pulse\
|
RUN apk add dbus xorg-server xf86-input-libinput eudev xspice supervisor firefox pulseaudio pulseaudio-alsa alsa-plugins-pulse\
|
||||||
&& addgroup bnuuy \
|
&& addgroup bnuuy \
|
||||||
&& adduser -G bnuuy -s /bin/sh -D bnuuy \
|
&& adduser -G bnuuy -s /bin/sh -D bnuuy \
|
||||||
&& rm -rf /apk /tmp/* /var/cache/apk/*
|
&& rm -rf /apk /tmp/* /var/cache/apk/*
|
||||||
ADD etc /etc
|
ADD etc /etc
|
||||||
|
RUN mkdir /tmp/audio_fifo\
|
||||||
|
&& echo "default-sink = fifo_output" >> /etc/pulse/client.conf \
|
||||||
|
&& echo "load-module module-x11-publish" >> /etc/pulse/default.pa \
|
||||||
|
&& echo "load-module module-pipe-sink sink_name=fifo_output file=/tmp/audio_fifo/audio.fifo format=s16 rate=48000 channels=2" >> /etc/pulse/default.pa
|
||||||
WORKDIR /home/bnuuy
|
WORKDIR /home/bnuuy
|
||||||
ADD mozilla .mozilla/
|
ADD mozilla .mozilla/
|
||||||
RUN chown -R bnuuy:bnuuy .mozilla/
|
RUN chown -R bnuuy:bnuuy .mozilla/
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
|
||||||
|
[program:dbus]
|
||||||
|
command=/usr/bin/dbus-daemon --session
|
||||||
|
user=bnuuy
|
||||||
|
autorestart=true
|
||||||
|
priority=100
|
||||||
|
|
||||||
[program:xspice]
|
[program:xspice]
|
||||||
command=/usr/bin/Xspice --port 5900 --disable-ticketing :1
|
command=/usr/bin/Xspice --port 5900 --audio-fifo-dir=/tmp/audio_fifo --disable-ticketing :1
|
||||||
user=bnuuy
|
user=bnuuy
|
||||||
autorestart=true
|
autorestart=true
|
||||||
priority=200
|
priority=200
|
||||||
|
|
Loading…
Reference in a new issue