truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 620 forks source link

Transmission is using an image that is no longer maintained #26184

Open patricioperezv opened 1 month ago

patricioperezv commented 1 month ago

App Name

transmission

SCALE Version

Not using SCALE

Train Name

stable

App Version

4.0.5

Latest Available Container Version

4.0.5

Link to container

https://github.com/onedr0p/containers/pkgs/container/transmission/174723429?tag=4.0.5

Additional Context

Seems like onedr0p is no longer maintaining transmission container images (ref: https://github.com/onedr0p/containers/pull/971), maybe the linuxserver image can be used instead?

I've read and agree with the following

patricioperezv commented 1 month ago

latest upstream transmission release is 4.0.6

kqmaverick commented 1 month ago

No geek-cookbook image either.

patricioperezv commented 1 month ago

i'm using this values with the common chart and it seems to do the job (Has some custom stuff for my setup, but anyway, here it goes):

TZ: America/Santiago
hostName: transmission.boa.lan

securityContext:
  container:
    readOnlyRootFilesystem: false
    runAsNonRoot: false
    runAsUser: 0
    runAsGroup: 0

image:
  repository: lscr.io/linuxserver/transmission
  pullPolicy: IfNotPresent
  tag: 4.0.6@sha256:3f723b3931425c08e9c22092509430f9274e0f5f57f3a357c5b09db5bc95268e
service:
  main:
    ports:
      main:
        port: 10109
  torrent:
    enabled: true
    ports:
      torrent:
        enabled: true
        port: 51414
        protocol: tcp
      torrentudp:
        enabled: true
        port: "{{ .Values.service.torrent.ports.torrent.port }}"
        protocol: udp

workload:
  main:
    podSpec:
      initContainers:
        download-ionic-ui:
          enabled: true
          type: init
          command: ["/bin/sh", "-c"]
          args: |
            #!/bin/bash
            set -e
            echo "Downloading Web UI..."
            curl -Lo /tmp/webui.zip https://github.com/6c65726f79/Transmissionic/releases/download/v1.8.0/Transmissionic-webui-v1.8.0.zip
            unzip /tmp/webui.zip -d /web-ui-temp
            cp -rfL /web-ui-temp/web/* /web-ui
            rm /tmp/webui.zip
      containers:
        main:
          probes:
            liveness:
              enabled: true
              type: tcp
            startup:
              enabled: true
              type: tcp
            readiness:
              enabled: true
              type: tcp
          env:
            PEERPORT: "{{ .Values.service.torrent.ports.torrent.port }}"
            USER: "ref+op://gherkin/transmission/username"
            PASS: "ref+op://gherkin/transmission/password"
            TRANSMISSION_WEB_HOME: "/web-ui"
persistence:
  config:
    enabled: true
    retain: true
    mountPath: "/config"
  downloads:
    enabled: true
    type: hostPath
    hostPath: "/data/data/Downloads"
    mountPath: /downloads
    hostPathType: DirectoryOrCreate
  watch:
    enabled: true
    type: hostPath
    hostPath: "/data/data/Downloads/watch"
    mountPath: /watch
    hostPathType: DirectoryOrCreate
  web-ui:
    enabled: true
    type: emptyDir
    mountPath: /web-ui
    targetSelectAll: true
portal:
  open:
    enabled: true
manifestManager:
  enabled: false

extraTpl:
    - |
      apiVersion: traefik.io/v1alpha1
      kind: IngressRoute
      metadata:
        name: {{ printf "%s-%s" .Release.Name "web" }}
      spec:
        entryPoints:
          - websecure
        routes:
          - match: "Host(`{{ .Values.hostName }}`)"
            kind: Rule
            services:
              - name: {{ printf "%s" .Chart.Name }}
                port: {{ .Values.service.main.ports.main.port }}
        tls:
          secretName: cattle-system/tls-rancher-ingress
kqmaverick commented 1 month ago

Yes, this runs as root which our previous transmission did not. That would make the change breaking. Also, I am unsure if the ENVs we used previously will work with this image as I did not see any instructions on use. I am not a transmission user so have no way of testing any of this.