Skip to content

Instantly share code, notes, and snippets.

@duckythescientist
Created January 4, 2019 02:42
Show Gist options
  • Save duckythescientist/43fddc06f820852848e8830d50639903 to your computer and use it in GitHub Desktop.
Save duckythescientist/43fddc06f820852848e8830d50639903 to your computer and use it in GitHub Desktop.
Dockerfile for Kurso de Esperanto
# Dockerfile for Kurso de Esperanto
# !!!!!!!!! NOT WORKING !!!!!!!!
# `WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded`
# Sound fails to play through the container
FROM ubuntu:16.04
RUN apt-get update && apt-get update \
&& apt-get install -y \
liboss4-salsa-asound2 \
libglib2.0-0 \
libpng12-0 \
libfreetype6 \
libsm6 \
libxrender1 \
libfontconfig1 \
libxext6
RUN apt-install -y \
phonon \
phonon-backend-gstreamer \
phonon-backend-vlc \
phonon4qt5-backend-gstreamer \
phonon4qt5-backend-vlc
COPY . /kurso
CMD /kurso/kurso4.sh
# Build the image:
# sudo docker build -t kurso .
# Add X permissions to the image:
# xhost +local:"$(sudo docker inspect --format='{{ .Config.Hostname }}' kurso)"
# Run the image
# sudo docker run -it -v $PWD:/kurso -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --device /dev/snd -v /run/dbus:/run/dbus -v /dev/shm:/dev/shm -v /run/user/$USER_ID/pulse:/run/user/0/pulse kurso /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment