diff --git a/community/tiny-media-manager/1.0.0/Chart.lock b/community/tiny-media-manager/1.0.0/Chart.lock new file mode 100644 index 0000000000..bbef36b196 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.0.12 +digest: sha256:debd30721d09ae8293b1cbdd9d0115981d40b47908be3035fc3cf657c9d5eedb +generated: "2023-07-27T17:58:35.529521438+03:00" diff --git a/community/tiny-media-manager/1.0.0/Chart.yaml b/community/tiny-media-manager/1.0.0/Chart.yaml new file mode 100644 index 0000000000..23cf732150 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/Chart.yaml @@ -0,0 +1,27 @@ +name: tiny-media-manager +description: tinyMediaManager is a media management tool written in Java/Swing. +annotations: + title: tinyMediaManager +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: 4.3.12 +kubeVersion: '>=1.16.0-0' +maintainers: + - name: truenas + url: https://www.truenas.com/ + email: dev@ixsystems.com +dependencies: + - name: common + repository: file://../../../common + version: 1.0.12 +home: https://www.tinymediamanager.org/ +icon: https://gitlab.com/tinyMediaManager/tinymediamanager.gitlab.io/-/raw/master/images/tmm.png +sources: + - https://www.tinymediamanager.org/ + - https://github.com/truenas/charts/tree/master/library/ix-dev/community/tiny-media-manager + - https://hub.docker.com/r/tinymediamanager/tinymediamanager +keywords: + - media + - tv-shows + - movies diff --git a/community/tiny-media-manager/1.0.0/README.md b/community/tiny-media-manager/1.0.0/README.md new file mode 100644 index 0000000000..4cde3596a4 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/README.md @@ -0,0 +1,3 @@ +# tinyMediaManager + +[tinyMediaManager](https://www.tinymediamanager.org/) is a media management tool written in Java/Swing. diff --git a/community/tiny-media-manager/1.0.0/app-readme.md b/community/tiny-media-manager/1.0.0/app-readme.md new file mode 100644 index 0000000000..4cde3596a4 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/app-readme.md @@ -0,0 +1,3 @@ +# tinyMediaManager + +[tinyMediaManager](https://www.tinymediamanager.org/) is a media management tool written in Java/Swing. diff --git a/community/tiny-media-manager/1.0.0/charts/common-1.0.12.tgz b/community/tiny-media-manager/1.0.0/charts/common-1.0.12.tgz new file mode 100644 index 0000000000..d6728e59ea Binary files /dev/null and b/community/tiny-media-manager/1.0.0/charts/common-1.0.12.tgz differ diff --git a/community/tiny-media-manager/1.0.0/ci/basic-values.yaml b/community/tiny-media-manager/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..79b1a1c6ae --- /dev/null +++ b/community/tiny-media-manager/1.0.0/ci/basic-values.yaml @@ -0,0 +1,14 @@ +tmmConfig: + password: secret + +tmmNetwork: + webPort: 31000 + +tmmID: + user: 1000 + group: 1000 + +tmmStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/data diff --git a/community/tiny-media-manager/1.0.0/ci/extra-values.yaml b/community/tiny-media-manager/1.0.0/ci/extra-values.yaml new file mode 100644 index 0000000000..e450053d44 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/ci/extra-values.yaml @@ -0,0 +1,17 @@ +tmmConfig: + password: secret + +tmmNetwork: + webPort: 31000 + +tmmStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/data + additionalStorages: + - type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/tv-shows + mountPath: /tv-shows + - type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/movies + mountPath: /movies diff --git a/community/tiny-media-manager/1.0.0/ci/hostNet-values.yaml b/community/tiny-media-manager/1.0.0/ci/hostNet-values.yaml new file mode 100644 index 0000000000..39100f858a --- /dev/null +++ b/community/tiny-media-manager/1.0.0/ci/hostNet-values.yaml @@ -0,0 +1,11 @@ +tmmConfig: + password: secret + +tmmNetwork: + webPort: 31000 + hostNetwork: true + +tmmStorage: + data: + type: hostPath + hostPath: /mnt/{{ .Release.Namespace }}/data diff --git a/community/tiny-media-manager/1.0.0/ix_values.yaml b/community/tiny-media-manager/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..6518448196 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/ix_values.yaml @@ -0,0 +1,26 @@ +image: + repository: tinymediamanager/tinymediamanager + pullPolicy: IfNotPresent + tag: 4.3.12 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +tmmConfig: + password: '' + additionalEnvs: [] + +tmmNetwork: + webPort: 30057 + +tmmID: + user: 568 + group: 568 + +tmmStorage: + config: + type: ixVolume + datasetName: data + additionalStorages: [] diff --git a/community/tiny-media-manager/1.0.0/metadata.yaml b/community/tiny-media-manager/1.0.0/metadata.yaml new file mode 100644 index 0000000000..c0c11a5c32 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/metadata.yaml @@ -0,0 +1,14 @@ +runAsContext: + - userName: root + groupName: root + gid: 0 + uid: 0 + description: tinyMediaManager runs as root user +capabilities: + - name: CHOWN + description: tinyMediaManager is able to chown files. + - name: SETGID + description: tinyMediaManager is able to set group ID for it's sub-processes. + - name: SETUID + description: tinyMediaManager is able to set user ID for it's sub-processes. +hostMounts: [] diff --git a/community/tiny-media-manager/1.0.0/questions.yaml b/community/tiny-media-manager/1.0.0/questions.yaml new file mode 100644 index 0000000000..b44e4eb828 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/questions.yaml @@ -0,0 +1,232 @@ +groups: + - name: tinyMediaManager Configuration + description: Configure tinyMediaManager + - name: User and Group Configuration + description: Configure User and Group for tinyMediaManager + - name: Network Configuration + description: Configure Network for tinyMediaManager + - name: Storage Configuration + description: Configure Storage for tinyMediaManager + - name: Resources Configuration + description: Configure Resources for tinyMediaManager + +portals: + web_portal: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" + path: "$kubernetes-resource_configmap_portal_path" + +questions: + - variable: tmmConfig + label: "" + group: tinyMediaManager Configuration + schema: + type: dict + attrs: + - variable: password + label: Password (Optional) + description: The password for tinyMediaManager. + schema: + type: string + default: "" + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for tinyMediaManager. + schema: + type: list + default: [] + items: + - variable: env + label: Environment Variable + schema: + type: dict + attrs: + - variable: name + label: Name + schema: + type: string + required: true + - variable: value + label: Value + schema: + type: string + required: true + + - variable: tmmID + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that tinyMediaManager files will be owned by. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that tinyMediaManager files will be owned by. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: tmmNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the tinyMediaManager Web UI. + schema: + type: int + default: 30057 + min: 9000 + max: 65535 + required: true + + - variable: tmmStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: data + label: tinyMediaManager Data Storage + description: The path to store tinyMediaManager Data. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: true + default: "ixVolume" + enum: + - value: "hostPath" + description: Host Path (Path that already exists on the system) + - value: "ixVolume" + description: ixVolume (Dataset created automatically by the system) + - variable: datasetName + label: Dataset Name + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + hidden: true + immutable: true + default: "data" + $ref: + - "normalize/ixVolume" + - variable: hostPath + label: Host Path + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + immutable: true + required: true + - variable: additionalStorages + label: Additional Storage + description: Additional storage for tinyMediaManager. + schema: + type: list + default: [] + items: + - variable: storageEntry + label: Storage Entry + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: true + default: "ixVolume" + enum: + - value: "hostPath" + description: Host Path (Path that already exists on the system) + - value: "ixVolume" + description: ixVolume (Dataset created automatically by the system) + - variable: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["type", "=", "hostPath"]] + required: true + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + show_if: [["type", "=", "ixVolume"]] + required: true + immutable: true + default: "storage_entry" + $ref: + - "normalize/ixVolume" + + - variable: resources + group: Resources Configuration + label: "" + schema: + type: dict + attrs: + - variable: limits + label: Limits + schema: + type: dict + attrs: + - variable: cpu + label: CPU + description: CPU limit for tinyMediaManager. + schema: + type: string + max_length: 6 + valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$' + valid_chars_error: | + Valid CPU limit formats are
+ - Plain Integer - eg. 1
+ - Float - eg. 0.5
+ - Milicpu - eg. 500m + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for tinyMediaManager. + schema: + type: string + max_length: 12 + valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$' + valid_chars_error: | + Valid Memory limit formats are
+ - Suffixed with E/P/T/G/M/K - eg. 1G
+ - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi
+ - Plain Integer in bytes - eg. 1024
+ - Exponent - eg. 134e6 + default: "8Gi" + required: true diff --git a/community/tiny-media-manager/1.0.0/templates/NOTES.txt b/community/tiny-media-manager/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/tiny-media-manager/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/tiny-media-manager/1.0.0/templates/_persistence.tpl b/community/tiny-media-manager/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..261c36636f --- /dev/null +++ b/community/tiny-media-manager/1.0.0/templates/_persistence.tpl @@ -0,0 +1,30 @@ +{{- define "tmm.persistence" -}} +persistence: + data: + enabled: true + type: {{ .Values.tmmStorage.data.type }} + datasetName: {{ .Values.tmmStorage.data.datasetName | default "" }} + hostPath: {{ .Values.tmmStorage.data.hostPath | default "" }} + targetSelector: + tmm: + tmm: + mountPath: /data + tmp: + enabled: true + type: emptyDir + targetSelector: + tmm: + tmm: + mountPath: /tmp + {{- range $idx, $storage := .Values.tmmStorage.additionalStorages }} + {{ printf "tmm-%v" (int $idx) }}: + enabled: true + type: {{ $storage.type }} + datasetName: {{ $storage.datasetName | default "" }} + hostPath: {{ $storage.hostPath | default "" }} + targetSelector: + tmm: + tmm: + mountPath: {{ $storage.mountPath }} + {{- end }} +{{- end -}} diff --git a/community/tiny-media-manager/1.0.0/templates/_portal.tpl b/community/tiny-media-manager/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..ef5a454918 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/templates/_portal.tpl @@ -0,0 +1,12 @@ +{{- define "tmm.portal" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.tmmNetwork.webPort | quote }} + protocol: http + host: $node_ip +{{- end -}} diff --git a/community/tiny-media-manager/1.0.0/templates/_service.tpl b/community/tiny-media-manager/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..7b200ac9db --- /dev/null +++ b/community/tiny-media-manager/1.0.0/templates/_service.tpl @@ -0,0 +1,16 @@ +{{- define "tmm.service" -}} +service: + tmm: + enabled: true + primary: true + type: NodePort + targetSelector: tmm + ports: + webui: + enabled: true + primary: true + port: {{ .Values.tmmNetwork.webPort }} + nodePort: {{ .Values.tmmNetwork.webPort }} + targetPort: 4000 + targetSelector: tmm +{{- end -}} diff --git a/community/tiny-media-manager/1.0.0/templates/_tmm.tpl b/community/tiny-media-manager/1.0.0/templates/_tmm.tpl new file mode 100644 index 0000000000..cf33419416 --- /dev/null +++ b/community/tiny-media-manager/1.0.0/templates/_tmm.tpl @@ -0,0 +1,53 @@ +{{- define "tmm.workload" -}} +workload: + tmm: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: false + securityContext: + fsGroup: {{ .Values.tmmID.group }} + containers: + tmm: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false + readOnlyRootFilesystem: false + capabilities: + add: + - SETUID + - SETGID + - CHOWN + fixedEnv: + PUID: {{ .Values.tmmID.user }} + env: + PASSWORD: {{ .Values.tmmConfig.password }} + {{ with .Values.tmmConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: http + port: 4000 + path: / + readiness: + enabled: true + type: http + port: 4000 + path: / + startup: + enabled: true + type: http + port: 4000 + path: / +{{- end -}} diff --git a/community/tiny-media-manager/1.0.0/templates/common.yaml b/community/tiny-media-manager/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..ccf19d8ddc --- /dev/null +++ b/community/tiny-media-manager/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "tmm.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "tmm.service" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "tmm.persistence" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "tmm.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/tiny-media-manager/item.yaml b/community/tiny-media-manager/item.yaml new file mode 100644 index 0000000000..168d40c88e --- /dev/null +++ b/community/tiny-media-manager/item.yaml @@ -0,0 +1,11 @@ +icon_url: https://gitlab.com/tinyMediaManager/tinymediamanager.gitlab.io/-/raw/master/images/tmm.png +categories: + - media +screenshots: + - https://www.tinymediamanager.org/images/screenshots/v4/movies/movies01.png + - https://www.tinymediamanager.org/images/screenshots/v4/movies/movies08.png + - https://www.tinymediamanager.org/images/screenshots/v4/movies/movies10.png + - https://www.tinymediamanager.org/images/screenshots/v4/movies/movies14.png +tags: + - tv-shows + - movies