Skip to content

Commit 0e5d7a6

Browse files
authored
SYS-671 owntone media server - replacement for mt-daapd (#252)
1 parent c916bdb commit 0e5d7a6

10 files changed

Lines changed: 135 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ The cluster-deployment tools here include helm charts and ansible playbooks to s
104104
| Service | Version | Notes |
105105
| --- | --- | --- |
106106
| davite | [![](https://img.shields.io/docker/v/instantlinux/davite?sort=date)](https://hub.docker.com/r/instantlinux/davite "Version badge") | party-invites manager like eVite |
107-
| mt-daapd | [![](https://img.shields.io/docker/v/instantlinux/mt-daapd?sort=date)](https://hub.docker.com/r/instantlinux/mt-daapd "Version badge") | iTunes server |
108107
| mythtv-backend | [![](https://img.shields.io/docker/v/instantlinux/mythtv-backend?sort=date)](https://hub.docker.com/r/instantlinux/mythtv-backend "Version badge") | MythTV backend |
109-
| owntone | ** | iTunes server (formerly forked-daapd) |
108+
| OwnTone | ** | iTunes server (formerly forked-daapd) |
110109
| weewx | [![](https://img.shields.io/docker/v/instantlinux/weewx?sort=date)](https://hub.docker.com/r/instantlinux/weewx "Version badge") | Weather station software (Davis VantagePro2 etc.) |
111110

112111
### Credits

images/mariadb-galera/helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ sources:
77
- https://github.com/MariaDB/server
88
- https://github.com/MariaDB/galera
99
type: application
10-
version: 0.1.1
11-
appVersion: "12.0.2"
10+
version: 0.1.2
11+
appVersion: "12.1.2"
1212
dependencies:
1313
- name: chartlib
1414
version: 0.1.8

images/mt-daapd/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
## mt-daapd
22
[![](https://img.shields.io/docker/v/instantlinux/mt-daapd?sort=date)](https://hub.docker.com/r/instantlinux/mt-daapd/tags "Version badge") [![](https://img.shields.io/docker/image-size/instantlinux/mt-daapd?sort=date)](https://github.com/instantlinux/docker-tools/tree/main/images/mt-daapd "Image badge") ![](https://img.shields.io/badge/platform-amd64%20arm64%20arm%2Fv6%20arm%2Fv7-blue "Platform badge") [![](https://img.shields.io/badge/dockerfile-latest-blue)](https://gitlab.com/instantlinux/docker-tools/-/blob/main/images/mt-daapd/Dockerfile "dockerfile")
33

4+
### Status
5+
This is a legacy image, discontinued after 0.26.4+dfsg1 in 2020. A compatible replacement is at [owntone/owntone](https://hub.docker.com/r/owntone/owntone). You can launch that image using the helm chart provided [here](https://github.com/instantlinux/docker-tools/tree/main/k8s/helm/owntone).
6+
7+
### Introduction
48
This is Ron Pedde's [Firefly Media server](https://en.wikipedia.org/wiki/Firefly_Media_Server) which implements the Digital Audio Access Protocol for serving MP3 and other audio media formats from a directory mounted to this container onto a LAN.
59

610
Devices such as Roku, Sonos and other brands of audio players or applications such as the Amarok music play for Linux will be able to connect to this service using mDNS/DNS-SD (Avahi).

k8s/Makefile.versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export VERSION_DEFAULTBACKEND ?= 1.5
1010
export VERSION_FLANNEL ?= 0.28.0
1111
export VERSION_HELM ?= 3.19.2
1212
export VERSION_INGRESS_NGINX ?= 1.14.1
13-
export VERSION_METRICS ?= 2.17.0
13+
export VERSION_METRICS ?= 2.18.0
1414
export VERSION_NODE_LOCAL_DNS ?= 1.34.3
1515

1616
# Held back versions - more effort to upgrade

k8s/helm/mt-daapd

Lines changed: 0 additions & 1 deletion
This file was deleted.

k8s/helm/owntone/Chart.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v2
2+
name: owntone
3+
description: iTunes / Roku-compatible media server
4+
home: https://github.com/instantlinux/docker-tools
5+
sources:
6+
- https://github.com/instantlinux/docker-tools
7+
- https://github.com/owntone/owntone-server
8+
type: application
9+
version: 0.1.0
10+
appVersion: "29.0"
11+
dependencies:
12+
- name: chartlib
13+
version: 0.1.8
14+
repository: https://instantlinux.github.io/docker-tools
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{- if hasKey .Values "service" }}
2+
{{- if or .Values.service.enabled (not (hasKey .Values.service "enabled")) }}
3+
1. Get the application URL by running these commands:
4+
{{- if hasKey .Values "ingress" }}
5+
{{- if .Values.ingress.enabled }}
6+
{{- range $host := .Values.ingress.hosts }}
7+
{{- range .paths }}
8+
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
9+
{{- end }}
10+
{{- end }}
11+
{{- else if contains "NodePort" .Values.service.type }}
12+
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "local.fullname" . }})
13+
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
14+
echo http://$NODE_IP:$NODE_PORT
15+
{{- else if contains "LoadBalancer" .Values.service.type }}
16+
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
17+
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "local.fullname" . }}'
18+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "local.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
19+
echo http://$SERVICE_IP:{{ .Values.service.port }}
20+
{{- else if contains "ClusterIP" .Values.service.type }}
21+
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "local.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
22+
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
23+
echo "Visit http://127.0.0.1:8080 to use your application"
24+
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
25+
{{- end }}
26+
{{- end }}
27+
{{- end }}
28+
{{- end }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- include "chartlib.deployment" . }}
2+
---
3+
{{- include "chartlib.hpa" . }}
4+
---
5+
{{- include "chartlib.ingress" . }}
6+
---
7+
{{- include "chartlib.ingresstotp" . }}
8+
---
9+
{{- include "chartlib.service" . }}
10+
---
11+
{{- include "chartlib.serviceaccount" . }}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- if hasKey .Values "service" }}
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
name: "{{ include "local.fullname" . }}-test-connection"
6+
labels:
7+
{{- include "local.labels" . | nindent 4 }}
8+
annotations:
9+
"helm.sh/hook": test
10+
spec:
11+
containers:
12+
- name: wget
13+
image: busybox
14+
command: ['wget']
15+
args: ['{{ include "local.fullname" . }}:{{ .Values.service.port }}']
16+
restartPolicy: Never
17+
{{- end }}

k8s/helm/owntone/values.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Default values for owntone.
2+
deployment:
3+
affinity:
4+
podAntiAffinity:
5+
requiredDuringSchedulingIgnoredDuringExecution:
6+
- labelSelector:
7+
matchExpressions:
8+
- key: app.kubernetes.io/name
9+
operator: In
10+
values:
11+
- owntone
12+
topologyKey: "kubernetes.io/hostname"
13+
env:
14+
gid: 1000
15+
uid: 1000
16+
# The (unprotected) UI lives at <node-ip>:3689. Add a password and set
17+
# trusted_network=none in /etc/owntone/owntone.conf after first launch
18+
hostNetwork: true
19+
nodeSelector:
20+
service.owntone: allow
21+
replicas: 2
22+
securityContext:
23+
fsGroup: 1000
24+
volumeMounts:
25+
- name: cache
26+
mountPath: /var/cache/owntone
27+
- name: share
28+
mountPath: /etc/owntone
29+
subPath: owntone/etc
30+
- name: music
31+
mountPath: /srv/media
32+
readOnly: true
33+
- name: run
34+
mountPath: /run
35+
volumes:
36+
- name: cache
37+
emptyDir: {}
38+
- name: music
39+
persistentVolumeClaim:
40+
claimName: mp3
41+
- name: run
42+
emptyDir:
43+
medium: Memory
44+
- name: share
45+
hostPath: { path: /var/lib/docker/k8s-volumes/share }
46+
47+
image:
48+
repository: owntone/owntone
49+
pullPolicy: IfNotPresent
50+
# tag: default
51+
52+
nameOverride: ""
53+
fullnameOverride: ""
54+
55+
serviceAccount: {}
56+
autoscaling:
57+
enabled: false

0 commit comments

Comments
 (0)