Compare commits

...

84 Commits

Author SHA1 Message Date
git
b68fdb8e96 'update files with ansible' 2026-01-04 07:15:41 +00:00
git
d2199fa835 'update files with ansible' 2025-03-02 15:05:17 +00:00
git
78562eb115 'update files with ansible' 2025-02-05 14:47:45 +00:00
git
ccb56cb0d5 'update files with ansible' 2024-10-23 05:38:07 +00:00
git
112dc5e06d 'update files with ansible' 2024-04-02 14:59:12 +00:00
git
b62370b732 'update files with ansible' 2024-03-25 14:09:14 +00:00
git
6629b8f029 'update files with ansible' 2024-03-25 14:01:13 +00:00
git
92bcd1d7c2 'update files with ansible' 2024-02-19 14:02:54 +00:00
git
6c8bf0ba85 'update files with ansible' 2024-02-19 10:34:29 +00:00
git
744c165222 'update files with ansible' 2024-02-19 10:15:47 +00:00
git
44dbe92cfe 'update files with ansible' 2024-02-11 14:18:34 +00:00
git
611020678d 'update files with ansible' 2024-02-11 14:08:39 +00:00
git
3b654ae1c1 'update files with ansible' 2024-02-11 13:38:42 +00:00
git
923b95ce24 'update files with ansible' 2024-02-11 13:24:09 +00:00
git
1c54a8d8e7 'update files with ansible' 2023-10-16 13:13:58 +00:00
git
f69db06964 'update files with ansible' 2023-10-16 13:07:03 +00:00
git
c84527a1f6 'update files with ansible' 2023-10-16 13:03:21 +00:00
git
11bd1b9f1b 'update files with ansible' 2023-10-16 13:01:23 +00:00
git
589e369c17 'update files with ansible' 2023-10-16 12:51:34 +00:00
git
189d8ff739 'update files with ansible' 2023-10-16 12:47:39 +00:00
git
9f2b3b8a7a 'update files with ansible' 2023-10-16 12:41:08 +00:00
git
2f806a4f10 'update files with ansible' 2023-10-13 14:50:35 +00:00
d9695cb6f7 'update files with ansible' 2022-11-07 12:43:05 +00:00
Jonathan Ervine
2405aaa735 Remove upgrade 2022-11-04 21:05:08 +08:00
Jonathan Ervine
f65f515e0d Adding --force 2022-11-04 20:57:47 +08:00
bdf77a8489 'update files with ansible' 2022-11-03 13:58:49 +00:00
2a5e822c82 'update files with ansible' 2022-08-01 12:56:57 +00:00
d237fc9a37 'update files with ansible' 2022-07-11 13:39:32 +00:00
bab1889a84 'update files with ansible' 2022-06-08 14:07:45 +00:00
9fb0327bbf 'update files with ansible' 2022-05-26 14:43:03 +00:00
36d9c33d95 'update files with ansible' 2022-03-06 01:34:22 +00:00
e82b7231e4 'update files with ansible' 2021-12-19 15:27:57 +00:00
c6f1d78616 Merge branch 'master' of ssh://git.ervine.org/jonny/x86_64-alpine-sonarr 2021-12-19 23:25:43 +08:00
7d6184209f Update helm chart to use apikey for metrics 2021-12-19 23:25:29 +08:00
f36430047d 'update files with ansible' 2021-12-19 14:52:17 +00:00
94c231517a 'update files with ansible' 2021-12-19 14:50:03 +00:00
375c41d7c6 'update files with ansible' 2021-12-19 14:45:53 +00:00
de138ba127 Fixed creds 2021-12-19 22:32:46 +08:00
ad18024c0e 'update files with ansible' 2021-12-19 14:21:56 +00:00
Jon Ervine
870b7c91d6 Updated Jenksinfile 2021-12-19 22:19:33 +08:00
eacffc611e 'update files with ansible' 2021-12-19 14:17:10 +00:00
5ec284af84 'update files with ansible' 2021-12-19 08:49:24 +00:00
a4f665b963 'update files with ansible' 2021-10-12 05:10:42 +00:00
Jonathan Ervine
c97ec4ab80 Fixing sidecar 2021-10-12 12:47:42 +08:00
7669ea43fc 'update files with ansible' 2021-10-12 03:35:14 +00:00
Jonathan Ervine
0dc07a3f29 Add quotes 2021-10-12 11:33:32 +08:00
Jonathan Ervine
323ba9fcc7 Add quotes 2021-10-12 11:32:51 +08:00
786f551392 'update files with ansible' 2021-10-12 03:26:18 +00:00
Jonathan Ervine
05545f5a1b Merge branch 'master' of ssh://git.ervine.org/jonny/x86_64-alpine-sonarr 2021-10-12 11:24:50 +08:00
Jonathan Ervine
6965ed2b64 Adding quotes 2021-10-12 11:24:44 +08:00
07f67d7b34 'update files with ansible' 2021-10-12 03:16:00 +00:00
Jonathan Ervine
bb3e08a92b Adding sonarr-exporter 2021-10-12 11:06:11 +08:00
56faf42f86 'update files with ansible' 2021-10-11 06:16:46 +00:00
5dc91fba4c 'update files with ansible' 2021-10-09 01:13:55 +00:00
1c6adf4bf1 'update files with ansible' 2021-06-27 16:08:51 +00:00
3edbbd170d 'update files with ansible' 2021-06-27 14:40:30 +00:00
75a0b30ccd 'update files with ansible' 2021-06-27 14:30:07 +00:00
5cd5b19a1b 'update files with ansible' 2021-06-27 12:50:43 +00:00
bef5977a6d 'update files with ansible' 2021-06-27 12:45:24 +00:00
82b398345d 'update files with ansible' 2021-06-27 12:34:57 +00:00
b8dcf5d9a9 'update files with ansible' 2021-06-27 12:13:19 +00:00
Jon Ervine
07fe0bbf6f Merge branch 'master' of ssh://git.ervine.org/jonny/x86_64-alpine-sonarr 2021-06-27 20:07:48 +08:00
Jon Ervine
066a896ed8 Added sonarr chart 2021-06-27 16:52:50 +08:00
6cf9644c40 'update files with ansible' 2021-06-24 15:26:32 +00:00
018797e44b 'update files with ansible' 2021-05-17 13:53:09 +00:00
589869b4f1 'update files with ansible' 2021-03-31 04:08:30 +00:00
45a19e2867 'update files with ansible' 2021-03-31 02:21:07 +00:00
4cd93bad7a 'update files with ansible' 2021-03-11 14:49:42 +00:00
e40a396fdc 'update files with ansible' 2021-03-11 14:46:57 +00:00
Jonathan Ervine
45f0a822b4 Bumped to Alpine Linux 3.13.0 2021-01-21 11:42:43 +08:00
Jonathan Ervine
5adc63acda Increased UID and GID to comply with synology UID numbers 2020-10-14 15:16:56 +08:00
Jonathan Ervine
9a833aa08e Deprecated start.sh 2020-08-28 11:15:34 +08:00
Jonathan Ervine
59506de582 Added gchat message 2020-08-12 11:40:17 +08:00
Jonathan Ervine
ee806a5159 Fixed group name 2020-07-27 13:10:00 +08:00
Jonathan Ervine
563827f1e5 Adding icon 2020-07-27 10:12:47 +08:00
Jonathan Ervine
1391248697 Fixed correct FROM entry 2020-07-27 09:03:31 +08:00
Jonathan Ervine
70bcaf7a4e Fixed maintainer label syntax 2020-07-27 09:01:17 +08:00
Jonathan Ervine
980c4c6067 Using public repository 2020-07-26 21:53:18 +08:00
Jonathan Ervine
25f8884f1e Switched to node builder 2020-07-20 23:52:28 +08:00
Jonathan Ervine
caee10c44f Bumped to Alpine Linux 3.12 2020-07-11 14:49:37 +08:00
665a1eddbc Merge pull request '3.11.6' (#1) from 3.11.6 into master
Reviewed-on: #1
2020-07-11 06:47:07 +00:00
Jonathan Ervine
6491806a2f modified: start.sh 2020-06-08 00:09:11 +08:00
Jonathan Ervine
5e00189cbe modified: start.sh
Fix for Sonarr 2
2020-06-07 22:46:02 +08:00
Jonathan Ervine
b6ced93554 modified: Dockerfile
modified:   Jenkinsfile
2020-06-05 15:23:05 +08:00
15 changed files with 465 additions and 48 deletions

31
Containerfile Normal file
View File

@ -0,0 +1,31 @@
# Base on latest UBI image
FROM harbor.ervine.dev/public/x86_64/ubi:9.6-1760340943
LABEL maintainer="Jonathan Ervine docker@ervine.org"
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
VERSION='3'
RUN dnf update -y && \
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
dnf install -y epel-release epel-next-release && \
dnf install -y libicu libmediainfo ca-certificates mono-core zip curl libgdiplus --allowerasing && \
update-ca-trust && \
dnf clean all
RUN curl -sLo sonarr.tar.gz https://github.com/Sonarr/Sonarr/releases/download/v4.0.16.2944/Sonarr.main.4.0.16.2944.linux-x64.tar.gz && \
sleep 30 && \
tar zxvf sonarr.tar.gz && \
rm -rf sonarr.tar.gz && \
groupadd -g 1027 sonarr && \
useradd -u 1027 -g sonarr -M sonarr && \
chown -R sonarr:sonarr /Sonarr
EXPOSE 8989
USER sonarr
CMD [ "/Sonarr/Sonarr", "--nobrowser", "--data=/config" ]

View File

@ -1,38 +1,31 @@
# Base on latest (edge) alpine image
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.11
# Base on latest UBI image
FROM harbor.ervine.dev/public/x86_64/ubi:9.3-1552
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
LABEL maintainer="Jonathan Ervine docker@ervine.org"
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
VERSION='develop' \
SONARR_USER='mediaservice' \
SONARR_GROUP='mediaservice' \
SONARR_UID='1003' \
SONARR_GID='1003'
VERSION='3'
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
apk -U update && \
apk -U upgrade && \
apk -U add libmediainfo ca-certificates mono curl && \
apk del make gcc g++ && \
rm -rf /tmp/src && \
rm -rf /var/cache/apk/*
RUN dnf update -y && \
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
dnf install -y epel-release epel-next-release && \
dnf install -y libicu libmediainfo ca-certificates mono-core zip curl libgdiplus --allowerasing && \
update-ca-trust && \
dnf clean all
ADD start.sh /usr/local/bin/start.sh
RUN chmod 755 /usr/local/bin/start.sh
RUN curl -o sonarr.tar.gz https://download.sonarr.tv/v3/phantom-develop/3.0.3.748/Sonarr.phantom-develop.3.0.3.748.linux.tar.gz -o sonarr.tar.gz && \
RUN curl -sLo sonarr.tar.gz https://github.com/Sonarr/Sonarr/releases/download/v4.0.1.929/Sonarr.main.4.0.1.929.linux-x64.tar.gz && \
sleep 30 && \
tar zxvf sonarr.tar.gz && \
rm -rf sonarr.tar.gz && \
addgroup -g $SONARR_GID $SONARR_GROUP && \
adduser -D -u $SONARR_UID -G $SONARR_GROUP -H $SONARR_USER && \
chown -R $SONARR_USER:$SONARR_GROUP /Sonarr
groupadd -g 1027 sonarr && \
useradd -u 1027 -g sonarr -M sonarr && \
chown -R sonarr:sonarr /Sonarr
EXPOSE 8989
USER $SONARR_USER
USER sonarr
CMD [ "/usr/local/bin/start.sh" ]
CMD [ "/Sonarr/Sonarr", "--nobrowser", "--data=/config" ]

56
Jenkinsfile vendored
View File

@ -1,26 +1,38 @@
node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "v3-dev", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-sonarr", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim()
println commit_id
try {
stage "build"
def app = docker.build "library/x86_64/alpine/sonarr"
stage "publish"
app.push("v3.0.3.748")
app.push("v3")
podTemplate(yaml: """
kind: Pod
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor@sha256:f652f28537fa76e8f4f9393de13a064f0206003c451ce2ad6e4359fd5a21acbc
imagePullPolicy: Always
command:
- /busybox/cat
tty: true
volumeMounts:
- name: jenkins-docker-cfg
mountPath: /kaniko/.docker
volumes:
- name: jenkins-docker-cfg
projected:
sources:
- secret:
name: regcred
items:
- key: .dockerconfigjson
path: config.json
"""
) {
stage('Deploy on K8s'){
sh "/usr/local/bin/kubectl -n media delete po sonarr3-0"
}
}
catch (err) {
currentBuild.result = 'FAILURE'
}
node(POD_LABEL) {
stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-sonarr', credentialsId: 'jenkins2git'
container('kaniko') {
sh '/kaniko/executor --force -f `pwd`/Containerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/ubi/sonarr:v4.0.16.2944'
}
}
stage('Notify gchat') {
googlechatnotification (url: 'https://chat.googleapis.com/v1/spaces/AAAA-nNKzdA/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=FySO2Zy2wfNJ7QKoqT9zy0uzNJF8bwj74ansor3BTu0%3D', message: "Sonarr 4.0.16.2944 on RHEL UBI has built")
}
}
}

22
chart/sonarr/.helmignore Normal file
View File

@ -0,0 +1,22 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

23
chart/sonarr/Chart.yaml Normal file
View File

@ -0,0 +1,23 @@
apiVersion: v2
name: sonarr
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.5.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v3.0.9.1549
icon: https://git.ervine.org/jonny/x86_64-alpine-sonarr/raw/branch/master/sonarr.png

View File

@ -0,0 +1,21 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "sonarr.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "sonarr.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "sonarr.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "sonarr.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:80
{{- end }}

View File

@ -0,0 +1,63 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "sonarr.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "sonarr.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "sonarr.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Common labels
*/}}
{{- define "sonarr.labels" -}}
helm.sh/chart: {{ include "sonarr.chart" . }}
{{ include "sonarr.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{/*
Selector labels
*/}}
{{- define "sonarr.selectorLabels" -}}
app.kubernetes.io/name: {{ include "sonarr.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{/*
Create the name of the service account to use
*/}}
{{- define "sonarr.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "sonarr.fullname" .) .Values.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}

View File

@ -0,0 +1,41 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "sonarr.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "sonarr.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "sonarr.fullname" . }}
labels:
{{- include "sonarr.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 8989
protocol: TCP
name: http
- port: 9707
targetPort: 9707
protocol: TCP
name: sonarr-metrics
selector:
{{- include "sonarr.selectorLabels" . | nindent 4 }}

View File

@ -0,0 +1,8 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "sonarr.serviceAccountName" . }}
labels:
{{ include "sonarr.labels" . | nindent 4 }}
{{- end -}}

View File

@ -0,0 +1,93 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "sonarr.fullname" . }}
labels:
{{- include "sonarr.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
serviceName: {{ include "sonarr.fullname" . }}
selector:
matchLabels:
{{- include "sonarr.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "sonarr.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "sonarr.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- args:
- exportarr
- sonarr
name: sonarr-metrics
image: ghcr.io/onedr0p/exportarr:latest
imagePullPolicy: IfNotPresent
ports:
- name: sonarr-metrics
containerPort: 9707
protocol: TCP
env:
- name: PORT
value: "9707"
- name: URL
value: "http://127.0.0.1:8989"
- name: ENABLE_EPISODE_QUALITY_METRICS
value: "true"
- name: APIKEY
value: "{{ .Values.metrics.apikey }}"
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: sonarr
containerPort: 8989
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 8989
readinessProbe:
httpGet:
path: /
port: 8989
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: sonarr-config
mountPath: /config
- name: sonarr-media
mountPath: /tv
subPath: tv
- name: sonarr-media
mountPath: /tv-kids
subPath: tv-kids
volumes:
- emptyDir: {}
name: sonarr-local-config
- name: sonarr-media
persistentVolumeClaim:
claimName: {{ .Values.mediaPvc }}
- name: sonarr-config
persistentVolumeClaim:
claimName: {{ .Values.config.configPvc }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "sonarr.fullname" . }}-test-connection"
labels:
{{ include "sonarr.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "sonarr.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

73
chart/sonarr/values.yaml Normal file
View File

@ -0,0 +1,73 @@
# Default values for sonarr.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: harbor.ervine.dev/public/x86_64/alpine/sonarr
tag: v3.0.9.1549
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:
podSecurityContext: {}
# fsGroup: 2000
securityContext:
# capabilities:
# drop:
# - ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1027
service:
type: ClusterIP
port: 8989
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
requests:
cpu: 20m
memory: 64Mi
nodeSelector:
location: livingRoom
tolerations: []
affinity: {}
config:
configPvc: sonarr-config
mediaPvc: sonarr-hermes-media-pvc

BIN
sonarr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -2,5 +2,8 @@
##
## Script to start the sonarr server
##
until [ -f "/config/sonarr.db" ]; do sleep 1; done
/usr/bin/mono --debug /Sonarr/Sonarr.exe --nobrowser --data=/config
echo "This has been deprecated"
addgroup -g $GID $USER
adduser -D -u $UID -G $USER -H $USER
until [ -f "/config/nzbdrone.db" ]; do sleep 1; done
/usr/bin/mono --debug /NzbDrone/NzbDrone.exe --nobrowser --data=/config