Warning, /multimedia/kaffeine/Dockerfile is written in an unsupported language. File is not indexed.
0001 # Copyright(c) Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 0002 # 0003 # Released under the terms of GPL 2.0. 0004 0005 0006 # Please notice that this container uses X11. So, it has to run with: 0007 # 0008 # docker run -it --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --volume="$HOME:/home/kaffeine:rw" $(for i in $(ls /dev/dvb/adapter*/*); do echo -n "--device=$i:$i:rwm "; done) maurochehab/kaffeine 0009 # 0010 0011 FROM ubuntu:19.04 0012 0013 MAINTAINER Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 0014 0015 # STEP 1: Install build and runtime dependencies 0016 0017 RUN echo "deb http://archive.ubuntu.com/ubuntu disco main restricted universe multiverse" >/etc/apt/sources.list && \ 0018 apt-get update && \ 0019 apt-get install -y --no-install-recommends build-essential cmake \ 0020 pkg-kde-tools pkg-config extra-cmake-modules qtbase5-dev libqt5x11extras5-dev \ 0021 libkf5coreaddons-dev libkf5dbusaddons-dev libkf5i18n-dev libkf5kio-dev debhelper \ 0022 libkf5solid-dev libkf5widgetsaddons-dev libkf5windowsystem-dev libkf5xmlgui-dev \ 0023 libkf5doctools-dev git libx11-dev libxss-dev libudev-dev libvlc-dev libqt5dbus5 \ 0024 dh-autoreconf autotools-dev autoconf-archive libtool pkg-config libqt5sql5-sqlite \ 0025 appstream dbus-x11 wget openssl ca-certificates && \ 0026 apt-get install -y --no-install-recommends vlc-data vlc-plugin-base vlc-plugin-qt \ 0027 vlc-plugin-video-output && \ 0028 rm -rf /var/lib/apt/lists/* 0029 0030 # STEP 2: Build v4l-utils and Kaffeine from their sources 0031 0032 RUN cd ~ && git clone git://linuxtv.org/v4l-utils.git && \ 0033 cd ~/v4l-utils && ./bootstrap.sh && ./configure \ 0034 --disable-bpf --disable-qvidcap --disable-qv4l2 --disable-v4l-utils --disable-dyn-libv4l \ 0035 && make && make install 0036 0037 # STEP 3: Build Kaffeine from their sources with newest scanfile.dvb 0038 0039 RUN cd ~ && git clone git://anongit.kde.org/kaffeine.git && \ 0040 wget https://linuxtv.org/downloads/dtv-scan-tables/kaffeine/scantable.dvb -O ~/kaffeine/src/scanfile.dvb && \ 0041 cd ~/kaffeine && cmake . && make VERBOSE=1 && make install 0042 0043 # STEP 4: purge development dependencies 0044 0045 RUN apt-get purge -y qtbase5-dev libqt5x11extras5-dev \ 0046 libkf5coreaddons-dev libkf5dbusaddons-dev libkf5i18n-dev libkf5kio-dev debhelper \ 0047 libkf5solid-dev libkf5widgetsaddons-dev libkf5windowsystem-dev libkf5xmlgui-dev \ 0048 libkf5doctools-dev git libx11-dev libxss-dev libudev-dev libvlc-dev \ 0049 dh-autoreconf autotools-dev autoconf-archive libtool pkg-config wget && \ 0050 apt-get clean -y && rm -rf ~/kaffeine ~/v4l-utils 0051 0052 # STEP 5: create an user to run it 0053 0054 RUN useradd -m -r -u 1000 -g users -Gaudio,video,irc kaffeine 0055 USER kaffeine 0056 0057 # STEP 6: command to run the container 0058 0059 #CMD ls -la /dev/dvb/adapter0 0060 CMD export $(dbus-launch); /usr/local/bin/kaffeine