hswaw/paperless: bump to v2.5.4

Change-Id: I2da532b06587344b0faf3d8028dc0e7796f9769a
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1911
Reviewed-by: radex <radex@hackerspace.pl>
changes/11/1911/2
informatic 2024-03-01 19:20:30 +01:00 committed by informatic
parent 2589ce6e82
commit cebcddfbfa
2 changed files with 7 additions and 6 deletions

View File

@ -1,15 +1,12 @@
# Note: this is required to run the container as non-root.
# Update:
# export VERSION=1.7.0
# export VERSION=2.5.4
# 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.17.4
ARG VERSION=2.5.4
FROM ghcr.io/paperless-ngx/paperless-ngx:${VERSION}
# Install polish tesseract training data
RUN apt-get update && apt-get install -y tesseract-ocr-pol && rm -rf /var/lib/apt/lists/*
# Remove privilege dropping and use paperless user directly everywhere
RUN sed -i 's/gosu paperless//g' /sbin/docker-entrypoint.sh && sed -i -e 's;user=.*;;g' -e 's;logfile=/var/.*;logfile=/dev/null;g' /etc/supervisord.conf

View File

@ -6,6 +6,10 @@
# first user as such:
# kubectl -n paperless exec -it deploy/paperless -c paperless -- python ./manage.py shell -c "from django.contrib.auth.models import User; u = User.objects.get_by_natural_key('informatic'); u.is_superuser = True; u.is_staff = True; u.save()"
# Quick full backup:
# kubectl -n paperless exec deploy/paperless -c paperless -- tar -c /usr/src/paperless/data /usr/src/paperless/media /usr/src/paperless/consume | pv > ~/paperless-backup/backup-....tar
# kubectl -n paperless exec deploy/postgres pg_dumpall > ~/paperless-backup/postgres-backup-....sql
local kube = import "../../kube/hscloud.libsonnet";
local postgres = import "../../kube/postgres.libsonnet";
local redis = import "../../kube/redis.libsonnet";
@ -20,7 +24,7 @@ local redis = import "../../kube/redis.libsonnet";
domain: "paperless.hackerspace.pl",
images: {
paperless: "registry.k0.hswaw.net/informatic/paperless-ngx:1.17.4",
paperless: "registry.k0.hswaw.net/informatic/paperless-ngx:2.5.4",
proxy: "quay.io/oauth2-proxy/oauth2-proxy:v7.2.1",
},