mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2024-10-18 02:37:45 +00:00
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>
This commit is contained in:
parent
2589ce6e82
commit
cebcddfbfa
2 changed files with 7 additions and 6 deletions
|
@ -1,15 +1,12 @@
|
||||||
# Note: this is required to run the container as non-root.
|
# Note: this is required to run the container as non-root.
|
||||||
|
|
||||||
# Update:
|
# 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 build --build-arg VERSION -t registry.k0.hswaw.net/informatic/paperless-ngx:$VERSION .
|
||||||
# docker push 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}
|
FROM ghcr.io/paperless-ngx/paperless-ngx:${VERSION}
|
||||||
|
|
||||||
# Install polish tesseract training data
|
# Install polish tesseract training data
|
||||||
RUN apt-get update && apt-get install -y tesseract-ocr-pol && rm -rf /var/lib/apt/lists/*
|
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
|
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
# first user as such:
|
# 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()"
|
# 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 kube = import "../../kube/hscloud.libsonnet";
|
||||||
local postgres = import "../../kube/postgres.libsonnet";
|
local postgres = import "../../kube/postgres.libsonnet";
|
||||||
local redis = import "../../kube/redis.libsonnet";
|
local redis = import "../../kube/redis.libsonnet";
|
||||||
|
@ -20,7 +24,7 @@ local redis = import "../../kube/redis.libsonnet";
|
||||||
domain: "paperless.hackerspace.pl",
|
domain: "paperless.hackerspace.pl",
|
||||||
|
|
||||||
images: {
|
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",
|
proxy: "quay.io/oauth2-proxy/oauth2-proxy:v7.2.1",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue