Recording Docker image updated

pull/577/head
pabloFuente 2021-01-14 15:38:46 +01:00
parent 3535c715a2
commit 3a3c474b84
4 changed files with 14 additions and 2 deletions

View File

@ -41,7 +41,10 @@ fi
chmod 777 /recordings/$VIDEO_ID chmod 777 /recordings/$VIDEO_ID
echo $RECORDING_JSON > /recordings/$VIDEO_ID/.recording.$VIDEO_ID echo $RECORDING_JSON > /recordings/$VIDEO_ID/.recording.$VIDEO_ID
pulseaudio -D # Cleanup to be "stateless" on startup, otherwise pulseaudio daemon can't start
rm -rf /var/run/pulse /var/lib/pulse /root/.config/pulse
# Run pulseaudio
pulseaudio -D --system --disallow-exit --disallow-module-loading
### Start Chrome in headless mode with xvfb, using the display num previously obtained ### ### Start Chrome in headless mode with xvfb, using the display num previously obtained ###

View File

@ -24,7 +24,10 @@ if [[ -z "${COMPOSED_QUICK_START_ACTION}" ]]; then
export HEIGHT="$(cut -d'x' -f2 <<< $RESOLUTION)" export HEIGHT="$(cut -d'x' -f2 <<< $RESOLUTION)"
export RECORDING_MODE=${RECORDING_MODE} export RECORDING_MODE=${RECORDING_MODE}
pulseaudio -D # Cleanup to be "stateless" on startup, otherwise pulseaudio daemon can't start
rm -rf /var/run/pulse /var/lib/pulse /root/.config/pulse
# Run pulseaudio
pulseaudio -D --system --disallow-exit --disallow-module-loading
### Start Chrome in headless mode with xvfb, using the display num previously obtained ### ### Start Chrome in headless mode with xvfb, using the display num previously obtained ###

View File

@ -19,6 +19,9 @@ RUN apt-get install -y ffmpeg pulseaudio xvfb
# Install jq for managing JSON # Install jq for managing JSON
RUN apt-get install -y jq RUN apt-get install -y jq
# Add root user to pulseaudio group
RUN adduser root pulse-access
# Clean # Clean
RUN apt-get autoclean RUN apt-get autoclean

View File

@ -23,6 +23,9 @@ RUN wget http://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-
&& rm google-chrome-stable_${CHROME_VERSION}_amd64.deb \ && rm google-chrome-stable_${CHROME_VERSION}_amd64.deb \
&& google-chrome --version && google-chrome --version
# Add root user to pulseaudio group
RUN adduser root pulse-access
# Clean # Clean
RUN apt-get clean && apt-get autoclean && apt-get autoremove RUN apt-get clean && apt-get autoclean && apt-get autoremove