Mythtv in Docker. Missing files?
by jmgibson1981 from LinuxQuestions.org on (#5AA83)
My problem is moving my mythtv-backend into Docker. The location of the maintenance scripts is empty, namely Code:/usr/share/doc/mythtv-backend/contrib/maintenance/optimize_mythdb.pl does not exist. When installed bare metal it shows up just fine?
Code:# no frills repository mythtv backend #
FROM ubuntu:focal
# needed for tzdata
# https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt full-upgrade -y && \
apt install -y curl && \
ln -s /usr/share/zoneinfo/$(curl https://ipapi.co/timezone) /etc/localtime
RUN apt install -y --no-install-recommends \
ssh \
man \
x11-apps \
sudo \
xauth \
xvfb \
xmltv-util \
mythtv-backend && \
apt clean && \
rm -r /var/lib/apt/lists/* && \
echo "mythtv ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/mythtv
COPY config.xml /etc/mythtv/config.xml
COPY sshd_config /etc/ssh/sshd_config
RUN chown mythtv:mythtv /etc/mythtv/config.xml && \
echo "mythtv:mythtv" | chpasswdNot sure how important it is. I typically had this script run once a week. More interested in why it's missing really.


Code:# no frills repository mythtv backend #
FROM ubuntu:focal
# needed for tzdata
# https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt full-upgrade -y && \
apt install -y curl && \
ln -s /usr/share/zoneinfo/$(curl https://ipapi.co/timezone) /etc/localtime
RUN apt install -y --no-install-recommends \
ssh \
man \
x11-apps \
sudo \
xauth \
xvfb \
xmltv-util \
mythtv-backend && \
apt clean && \
rm -r /var/lib/apt/lists/* && \
echo "mythtv ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/mythtv
COPY config.xml /etc/mythtv/config.xml
COPY sshd_config /etc/ssh/sshd_config
RUN chown mythtv:mythtv /etc/mythtv/config.xml && \
echo "mythtv:mythtv" | chpasswdNot sure how important it is. I typically had this script run once a week. More interested in why it's missing really.