From 0bb2fcaa32c22f8859833ead981b90ed033f3a15 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Tue, 10 Oct 2023 00:42:03 +0200 Subject: [PATCH] hswaw/paperless: upgrade postgres to 15.4, paperless-ngx to 1.17.4 Change-Id: I790f306cf2a7837e11e035615862cf00641d5c96 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1699 Reviewed-by: radex --- hswaw/paperless/Dockerfile | 2 +- hswaw/paperless/paperless.libsonnet | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/hswaw/paperless/Dockerfile b/hswaw/paperless/Dockerfile index af9a3ee8..e9cb652f 100644 --- a/hswaw/paperless/Dockerfile +++ b/hswaw/paperless/Dockerfile @@ -5,7 +5,7 @@ # docker build --build-arg VERSION -t registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION . # docker push registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION -ARG VERSION=1.7.0 +ARG VERSION=1.17.4 FROM ghcr.io/paperless-ngx/paperless-ngx:${VERSION} # Install polish tesseract training data diff --git a/hswaw/paperless/paperless.libsonnet b/hswaw/paperless/paperless.libsonnet index 99723455..8008a69d 100644 --- a/hswaw/paperless/paperless.libsonnet +++ b/hswaw/paperless/paperless.libsonnet @@ -19,7 +19,7 @@ local redis = import "../../kube/redis.libsonnet"; domain: "paperless.hackerspace.pl", images: { - paperless: "registry.k0.hswaw.net/informatic/paperless-ngx@sha256:78b17e3050f7edea1e8c659c433ebcb6365bb93280a2698e3322075f988b1f41", + paperless: "registry.k0.hswaw.net/informatic/paperless-ngx:1.17.4", proxy: "quay.io/oauth2-proxy/oauth2-proxy:v7.2.1", }, @@ -48,6 +48,12 @@ local redis = import "../../kube/redis.libsonnet"; password: { secretKeyRef: { name: "paperless", key: "postgres_password" } }, storageClassName: cfg.storageClassName, storageSize: "20Gi", + + image: "postgres:15.4-bookworm", + pgupgrade+: { + enable: true, + from: "10", + }, }, bouncer: {}, }, @@ -128,6 +134,7 @@ local redis = import "../../kube/redis.libsonnet"; }, env_: { PAPERLESS_PORT: "8000", + PAPERLESS_URL: "https://%s" % [cfg.domain], PAPERLESS_SECRET_KEY: { secretKeyRef: { name: "paperless", key: "secret_key" } }, @@ -145,6 +152,7 @@ local redis = import "../../kube/redis.libsonnet"; PAPERLESS_OCR_LANGUAGE: "pol", PAPERLESS_OCR_MODE: "force", PAPERLESS_DATE_ORDER: "YMD", + PAPERLESS_EMAIL_TASK_CRON: "*/2 * * * *", }, volumeMounts: [