forked from pkendall64/docker-mythtv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
73 lines (66 loc) · 2.87 KB
/
Copy pathDockerfile
File metadata and controls
73 lines (66 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# OLD: FROM ubuntu:jammy
FROM ubuntu:noble
# ENV remains the same
ENV CONFIG_MODE=1 \
DEBIAN_FRONTEND="noninteractive" \
DISPLAY=:1 \
HOME=/home/mythtv \
GROUPID=121 \
LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
TERM="xterm" \
TZ="America/Chicago" \
USERID=120
# OLD: ARG MYTHTV_VERSION="33"
ARG MYTHTV_VERSION="35"
# OLD: ARG MYTHTV_URL="http://ppa.launchpad.net/mythbuntu/$MYTHTV_VERSION/ubuntu/"
ARG MYTHTV_URL="https://ppa.launchpad.net/mythbuntu/$MYTHTV_VERSION/ubuntu/"
# OLD: ARG S6_VERSION="v1.21.4.0"
ARG S6_VERSION="v3.2.1.0"
# OLD: ARG S6_URL="https://github.com/just-containers/s6-overlay/releases/download/$S6_VERSION/s6-overlay-amd64.tar.gz"
# New ARG for noarch and arch-specific URLs since s6-overlay format changed in v3+
ARG S6_NOARCH_URL="https://github.com/just-containers/s6-overlay/releases/download/$S6_VERSION/s6-overlay-noarch.tar.xz"
ARG S6_ARCH_URL="https://github.com/just-containers/s6-overlay/releases/download/$S6_VERSION/s6-overlay-x86_64.tar.xz"
# OLD: RUN apt-get update && apt-get install -y gnupg2
# New: Install software-properties-common for add-apt-repository, and include curl early for consistency
RUN apt-get update && apt-get install -y software-properties-common gnupg2 curl
# OLD (entire block): ...
# New: Use add-apt-repository for modern PPA addition (handles keys automatically), but add -y for noninteractive mode to avoid any potential prompts. Update to noble in deb line (handled by add-apt), change s6 to two downloads with .xz extraction
RUN add-apt-repository -y ppa:mythbuntu/$MYTHTV_VERSION \
&& apt-get update \
&& apt-get dist-upgrade -y --no-install-recommends \
-o Dpkg::Options::="--force-confold" \
\
&& apt-get install -y mariadb-server apt-utils locales tzdata \
git x11vnc xvfb mate-desktop-environment-core net-tools \
\
&& apt-get install -y \
mythtv-backend-master xmltv xmltv-util \
\
&& wget https://nice.net.nz/scripts/tv_grab_nz-py -O /usr/bin/tv_grab_nz-py \
&& chmod a+x /usr/bin/tv_grab_nz-py \
\
&& sed -i 's/3306/6506/g' /etc/mysql/mariadb.conf.d/50-server.cnf \
&& sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/mariadb.conf.d/50-server.cnf \
\
&& cd /opt && git clone https://github.com/kanaka/noVNC.git \
&& cd noVNC/utils && git clone \
https://github.com/kanaka/websockify websockify \
\
&& locale-gen en_US.UTF-8 \
\
&& curl -o /tmp/s6-noarch.tar.xz -L ${S6_NOARCH_URL} \
&& tar -Jxpf /tmp/s6-noarch.tar.xz -C / \
&& curl -o /tmp/s6-arch.tar.xz -L ${S6_ARCH_URL} \
&& tar -Jxpf /tmp/s6-arch.tar.xz -C / \
&& rm /tmp/*.tar.xz \
\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# COPY remains the same
COPY rootfs/ /
# CMD remains the same
CMD ["/init"]
# VOLUME remains the same
VOLUME ["/home/mythtv", "/var/lib/mysql", "/var/lib/mythtv"]