Skip to content

Commit 90726ac

Browse files
authored
SYS-610 upgrade mythtv to version 33 (#116)
1 parent 8c05a01 commit 90726ac

7 files changed

Lines changed: 25 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ easy. Contents:
1717
| ssl | PKI certificate tools (deprecated by k8s) |
1818
| stacks | container resources in docker-compose format |
1919

20-
Find images at [docker hub/instantlinux](https://hub.docker.com/r/instantlinux/). Each image is scanned for published CVE vulnerabilities by (trivy)[https://trivy.dev/] before promotion to Docker Hub.
20+
Find images at [docker hub/instantlinux](https://hub.docker.com/r/instantlinux/). Each image is scanned by [trivy](https://trivy.dev/) to ensure they contain no known CVE vulnerabilities before promotion to Docker Hub.
2121

2222
Find a lot more details about the Kubernetes bare-metal installer in [k8s/README](k8s/README.md).
2323

ansible/roles/mythfrontend/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ ir_device:
227227
mythdb_overrides: {}
228228
db: "{{ db_defaults | combine(mythdb_overrides) }}"
229229

230-
mythtv_version: 32
230+
mythtv_version: 33
231231

232232
opensuse_packages:
233233
- ImageMagick-devel

images/mythtv-backend/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ ENV APACHE_LOG_DIR=/var/log/apache2 \
2121
ARG APT_KEY=13551B881504888C
2222
ARG MYTHTV_GID=100
2323
ARG MYTHTV_UID=2021
24-
ARG MYTHTV_PPA=http://ppa.launchpad.net/mythbuntu/32
25-
ARG MYTHTV_VERSION=2:32.0+fixes.202305160103.72024244b8~ubuntu22.04.1
24+
ARG MYTHTV_PPA=http://ppa.launchpad.net/mythbuntu/33
25+
ARG MYTHTV_VERSION=2:33.1+fixes.202307251604.402c6d7758~ubuntu22.04.1
2626
ARG SSH_PORT=2022
2727
ARG MYTHWEB_PORT=6760
2828
ARG PPA_BRANCH=32
2929
ARG MYTHLINK_SHA=459cb8b60adae4b631a95a9cfb1b41dcb959cc4a0b9053582a711d58b8d8a0d2
3030

3131
RUN \
32-
apt-get -yq update && apt-get -y upgrade && \
32+
apt-get -yq update && \
3333
apt-get install -yq gnupg locales wget && \
3434
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com $APT_KEY && \
3535
echo "deb $MYTHTV_PPA/ubuntu jammy main" \
@@ -41,7 +41,8 @@ RUN \
4141
openssh-client openssh-server mythtv-backend=$MYTHTV_VERSION \
4242
mythtv-common=$MYTHTV_VERSION mythtv-transcode-utils=$MYTHTV_VERSION \
4343
mythweb=$MYTHTV_VERSION libmyth-python libmythtv-perl php-mythtv psmisc \
44-
sudo tzdata v4l-utils vim w3m x11-utils xauth xmltv xterm
44+
sudo tzdata v4l-utils vim w3m x11-utils xauth xmltv xterm && \
45+
rm /etc/ssh/ssh_host_*
4546

4647
COPY src/ /root/
4748

@@ -61,5 +62,5 @@ RUN \
6162

6263
EXPOSE $MYTHWEB_PORT $SSH_PORT 5000/udp 5002/udp 5004/udp 6543 6544 6549 \
6364
65001 65001/udp
64-
VOLUME $APACHE_LOG_DIR
65+
VOLUME $APACHE_LOG_DIR /etc/ssh
6566
ENTRYPOINT ["/root/entrypoint.sh"]

images/mythtv-backend/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ This ansible script is prone to configuration glitches so you will likely have t
7777

7878
Note that the [Kodi](https://kodi.tv/download/) frontend also provides limited support for the MythTV backend.
7979

80+
### Volumes
81+
82+
Optionally, mount these path names to persistent storage:
83+
84+
Path | Description
85+
---- | -----------
86+
/var/log/apache2 | Apache logs
87+
/etc/ssh | Host keys and configs for ssh
88+
8089
### Secrets
8190

8291
Add these as Kubernetes secrets, or if you're running standalone specify these with source type "file". See the above volume mounts or the sample docker-compose.yml.

images/mythtv-backend/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ services:
1515
- apache2:/var/log/apache2
1616
- data:/var/mythdata
1717
- home:/home/mythtv
18+
- ssh-config:/etc/ssh
1819
- /var/mythtv:/var/mythtv
1920
secrets:
2021
- mythtv-db-password
@@ -30,3 +31,4 @@ volumes:
3031
apache2:
3132
data:
3233
home:
34+
ssh-config:

images/mythtv-backend/helm/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ deployment:
2626
volumeMounts:
2727
- name: apache-log
2828
mountPath: /var/log/apache2
29+
- name: ssh-config
30+
mountPath: /etc/ssh
2931
- name: data
3032
mountPath: /var/mythdata
3133
- name: share
@@ -50,6 +52,8 @@ volumeMounts:
5052
volumes:
5153
- name: apache-log
5254
emptyDir: {}
55+
- name: ssh-config
56+
emptyDir: {}
5357
- name: data
5458
hostPath: { path: $MYTHTV_VOL_PATH }
5559
- name: videos

services/mythtv-backend/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ services:
1515
- apache2:/var/log/apache2
1616
- data:/var/mythdata
1717
- home:/home/mythtv
18+
- ssh-config:/etc/ssh
1819
- /var/mythtv:/var/mythtv
1920
- /var/mythtv/arch1:/var/mythtv/arch1
2021
- /var/mythtv/arch2:/var/mythtv/arch2
@@ -36,3 +37,4 @@ volumes:
3637
apache2:
3738
data:
3839
home:
40+
ssh-config:

0 commit comments

Comments
 (0)