-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
165 lines (133 loc) · 6.4 KB
/
Dockerfile
File metadata and controls
165 lines (133 loc) · 6.4 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Copyright (c) 2026 jbleyel
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Keys
RUN apt-get update -o Acquire::AllowInsecureRepositories=true \
&& apt-get install -y --no-install-recommends ubuntu-keyring \
&& apt-get update \
&& apt-get upgrade -y
RUN apt install -y tzdata
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa -y \
&& apt-get update \
&& apt-get install -y python3.14-dev
RUN apt-get update && apt-get install -y \
git g++-14 build-essential autoconf autotools-dev gettext libtool libtool-bin unzip swig \
python3-usb python3-requests \
libz-dev libssl-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsigc++-3.0-dev \
libfreetype6-dev libfribidi-dev \
libavahi-client-dev libjpeg-dev libgif-dev libsdl2-dev libxml2-dev libwebp-dev libswscale-dev libavutil-dev \
libarchive-dev libcurl4-openssl-dev libgpgme11-dev libtirpc-dev \
x11vnc xvfb xdotool nginx openssh-server curl vsftpd nano locales iputils-ping net-tools gdb valgrind libsqlite3-dev libuchardet-dev
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV PYTHONUTF8=1
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 1
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 1
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.14 1
RUN rm /usr/bin/python3 && ln -sf /usr/bin/python3.14 /usr/bin/python3
RUN rm /usr/bin/pygettext3 && ln -sf /usr/bin/pygettext3.14 /usr/bin/pygettext3
RUN rm /usr/bin/pydoc3 && ln -sf /usr/bin/pydoc3.14 /usr/bin/pydoc3
RUN apt-get install -y python3-pip
RUN pip install --upgrade --force-reinstall setuptools
RUN pip3 install Twisted wifi CT3 pillow treq future netifaces cffi puremagic tmdbsimple tvdbsimple tinytag mutagen python-dateutil lxml --break-system-packages
RUN update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-14 1
WORKDIR /work
RUN git clone --depth 1 https://github.com/oe-alliance/libdvbsi.git
RUN cd libdvbsi \
&& ./autogen.sh \
&& ./configure --prefix=/usr \
&& make \
&& make install
RUN git clone --depth 1 https://github.com/oe-alliance/tuxtxt.git
RUN cd tuxtxt/libtuxtxt \
&& autoreconf -i \
&& CPP="gcc -E -P" ./configure --with-boxtype=generic --prefix=/usr \
&& make \
&& make install
RUN cd tuxtxt/tuxtxt \
&& autoreconf -i \
&& CPP="gcc -E -P" ./configure --with-boxtype=generic --prefix=/usr \
&& make \
&& make install
ARG OPKG_VER="0.7.0"
RUN curl -L https://git.yoctoproject.org/opkg/snapshot/opkg-$OPKG_VER.tar.gz -o opkg.tar.gz
RUN tar -xzf opkg.tar.gz
RUN cd "opkg-$OPKG_VER" \
&& autoreconf -i \
&& ./configure --enable-gpg --disable-curl --prefix=/usr --sysconfdir=/etc \
&& make \
&& make install
RUN git clone --depth 1 https://github.com/openatv/enigma2.git
COPY ax_python_devel.m4 /work/enigma2/m4/ax_python_devel.m4
RUN cd enigma2 \
&& ./autogen.sh \
&& ./configure --with-libsdl --with-gstversion=1.0 --prefix=/usr --sysconfdir=/etc --with-boxtype=dm920 \
&& make -j4 \
&& make install
RUN ldconfig
#branding
RUN git clone --depth 1 https://github.com/oe-mirrors/branding-module.git
COPY ax_python_devel.m4 branding-module/m4/ax_python_devel.m4
RUN cd branding-module \
&& autoreconf -i \
&& ./configure --prefix=/usr --with-imageversion="7.4" \
&& make \
&& make install
#default skin
RUN git clone --depth 1 https://github.com/openatv/oe-alliance-e2-skindefault.git
RUN cd oe-alliance-e2-skindefault \
&& cp -arv fonts /usr/share/ \
&& cp -arv skin_default /usr/share/enigma2/ \
&& cp skin*.xml /usr/share/enigma2/ \
&& cp prev.png /usr/share/enigma2/
#WeatherInfo
RUN git clone --depth 1 https://github.com/openatv/WeatherInfo.git
RUN cd WeatherInfo && cp Weatherinfo.py /usr/lib/enigma2/python/Tools/
#metrix
RUN git clone --depth 1 https://github.com/openatv/MetrixHD.git -b master
RUN cd MetrixHD && cp -arv usr /
# OPKG
RUN mkdir -p /etc/opkg && mkdir -p /var/lib/opkg/lists && mkdir -p /var/lib/opkg/info \
&& echo "dest root /" > /etc/opkg/opkg.conf \
&& echo "option lists_dir /var/lib/opkg/lists" >> /etc/opkg/opkg.conf \
&& echo "option status_file /var/lib/opkg/status" >> /etc/opkg/opkg.conf \
&& echo "arch all 1" > /etc/opkg/arch.conf \
&& echo "arch any 6" >> /etc/opkg/arch.conf \
&& echo "arch noarch 11" >> /etc/opkg/arch.conf \
&& echo "src/gz openatv-all http://feeds2.mynonpublic.com/7.4/vusolo4k/all" >> /etc/opkg/all-feed.conf \
&& echo "src/gz oe-alliance-settings-feed https://raw.githubusercontent.com/oe-alliance/oe-alliance-settings-feed/master/feed" >> /etc/opkg/oe-alliance-settings-feed.conf
COPY opkg.py /work/opkg.py
RUN python opkg.py
RUN if [ -f /usr/lib32/libc.so.6 ]; then ln -snf /usr/lib32/libc.so.6 /usr/lib/libc.so.6 && chmod 755 /usr/lib32/libc.so.6; fi
RUN if [ -f /usr/lib/aarch64-linux-gnu/libc.so.6 ]; then ln -snf /usr/lib/aarch64-linux-gnu/libc.so.6 /usr/lib/libc.so.6 && chmod 755 /usr/lib/aarch64-linux-gnu/libc.so.6; fi
RUN mkdir -p /media/hdd/movie && mkdir -p /media/hdd/picon && mkdir -p /hdd && mkdir -p /etc/enigma2 && mkdir -p /etc/tuxtxt && mkdir -p /dev/input
COPY enigma.info /usr/lib/enigma.info
COPY process.py /usr/lib/python3.14/process.py
COPY etc/* /etc/enigma2/
WORKDIR /src
CMD ["/bin/bash"]