mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[Paperless] - Update chart to use the 'Paperless-ng' fork (#525)
This commit is contained in:
parent
a52f214568
commit
1775d51d22
@ -1,14 +1,14 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: 2.7.0
|
appVersion: 1.0.0
|
||||||
description: Paperless - Index and archive all of your scanned paper documents
|
description: Paperless - Index and archive all of your scanned paper documents
|
||||||
name: paperless
|
name: paperless
|
||||||
version: 2.3.1
|
version: 3.0.0
|
||||||
keywords:
|
keywords:
|
||||||
- paperless
|
- paperless
|
||||||
home: https://github.com/k8s-at-home/charts/tree/master/charts/paperless
|
home: https://github.com/k8s-at-home/charts/tree/master/charts/paperless
|
||||||
icon: https://raw.githubusercontent.com/the-paperless-project/paperless/master/src/paperless/static/paperless/img/logo-dark.png
|
icon: https://raw.githubusercontent.com/the-paperless-project/paperless/master/src/paperless/static/paperless/img/logo-dark.png
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/the-paperless-project/paperless
|
- https://github.com/jonaswinkler/paperless-ng
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: mr-onion-2
|
- name: mr-onion-2
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Paperless
|
# Paperless
|
||||||
|
|
||||||
This is a helm chart for [Paperless](https://github.com/the-paperless-project/paperless). The documentation can be found [here](https://paperless.readthedocs.io/en/latest/index.html).
|
This is a helm chart for [Paperless-ng](https://github.com/jonaswinkler/paperless-ng). The documentation can be found [here](https://paperless-ng.readthedocs.io/en/latest/).
|
||||||
|
|
||||||
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose).**
|
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose).**
|
||||||
|
|
||||||
@ -35,16 +35,23 @@ The chart's [values.yaml](https://github.com/k8s-at-home/charts/blob/master/char
|
|||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
```console
|
```console
|
||||||
helm install paperless \
|
helm install paperless \
|
||||||
--set env.TZ="America/New_York" \
|
--set env.PAPERLESS_TIME_ZONE="America/New_York" \
|
||||||
k8s-at-home/paperless
|
k8s-at-home/paperless
|
||||||
```
|
```
|
||||||
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
|
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
|
||||||
```console
|
```console
|
||||||
helm install paperless k8s-at-home/paperless --values values.yaml
|
helm install paperless k8s-at-home/paperless --values values.yaml
|
||||||
```
|
```
|
||||||
|
---
|
||||||
|
|
||||||
## Backup & Restore
|
## Upgrading an existing Release to a new major version
|
||||||
Documents can be exported and re-imported by running the following commands directly on the pod. [More info](https://paperless.readthedocs.io/en/latest/migrating.html).
|
|
||||||
|
|
||||||
Backup: `/usr/src/paperless/src/manage.py document_exporter /path/to/somewhere/`
|
A major chart version change (like 1.0.1 -> 2.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
|
||||||
Restore: `/usr/src/paperless/src/manage.py document_importer /path/to/somewhere/`
|
|
||||||
|
### Upgrading from 2.x.x to 3.x.x
|
||||||
|
|
||||||
|
Version 3.0.0 of this chart has been adapted for [Paperless-ng](https://github.com/jonaswinkler/paperless-ng) (currently a fork of the main project). The default `values.yaml` has been updated accordingly. Changes include:
|
||||||
|
|
||||||
|
* A new set of [environment variables](https://github.com/jonaswinkler/paperless-ng/blob/master/paperless.conf.example)
|
||||||
|
* New mouthPath defaults for the consume and export volumes
|
||||||
|
* Seperate consumer pod no longer required.
|
@ -2,16 +2,12 @@ persistence:
|
|||||||
data:
|
data:
|
||||||
enabled: true
|
enabled: true
|
||||||
emptyDir: true
|
emptyDir: true
|
||||||
mountPath: /usr/src/paperless/data
|
|
||||||
media:
|
media:
|
||||||
enabled: true
|
enabled: true
|
||||||
emptyDir: true
|
emptyDir: true
|
||||||
mountPath: /usr/src/paperless/media
|
|
||||||
consume:
|
consume:
|
||||||
enabled: true
|
enabled: true
|
||||||
emptyDir: true
|
emptyDir: true
|
||||||
mountPath: /consume
|
|
||||||
export:
|
export:
|
||||||
enabled: true
|
enabled: true
|
||||||
emptyDir: true
|
emptyDir: true
|
||||||
mountPath: /export
|
|
||||||
|
@ -1 +1,4 @@
|
|||||||
{{- include "common.notes.defaultNotes" . -}}
|
{{- include "common.notes.defaultNotes" . }}
|
||||||
|
2. Create a super user by running the command:
|
||||||
|
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "common.names.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
||||||
|
kubectl exec -it --namespace {{ .Release.Namespace }} $POD_NAME -- bash -c "python manage.py createsuperuser"
|
@ -1,26 +1,23 @@
|
|||||||
# Default values for Paperless.
|
# Default values for Paperless.
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: thepaperlessproject/paperless
|
repository: jonaswinkler/paperless-ng
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: latest
|
tag: latest
|
||||||
|
|
||||||
args: "['gunicorn', '-b', '0.0.0.0:8000']"
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
|
||||||
# See the following files for supported environment variables
|
# See the following files for additional environment variables
|
||||||
# https://github.com/the-paperless-project/paperless/blob/master/docker-compose.env.example
|
# https://github.com/jonaswinkler/paperless-ng/tree/master/docker/compose/
|
||||||
# https://github.com/the-paperless-project/paperless/blob/master/paperless.conf.example
|
# https://github.com/jonaswinkler/paperless-ng/blob/master/paperless.conf.example
|
||||||
env:
|
env:
|
||||||
# TZ: Europe/London
|
COMPOSE_PROJECT_NAME: paperless
|
||||||
PAPERLESS_OCR_LANGUAGES: eng
|
PAPERLESS_REDIS: redis://localhost:6379
|
||||||
# PAPERLESS_FORGIVING_OCR: true
|
PAPERLESS_OCR_LANGUAGE: eng
|
||||||
# PAPERLESS_DISABLE_LOGIN: true
|
# USERMAP_UID: 1000
|
||||||
# PAPERLESS_INLINE_DOC: true
|
# USERMAP_GID: 1000
|
||||||
# PAPERLESS_OCR_THREADS:
|
# PAPERLESS_TIME_ZONE: Europe/London
|
||||||
# PAPERLESS_CONVERT_DENSITY:
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
port:
|
port:
|
||||||
@ -30,27 +27,21 @@ persistence:
|
|||||||
data:
|
data:
|
||||||
enabled: false
|
enabled: false
|
||||||
mountPath: /usr/src/paperless/data
|
mountPath: /usr/src/paperless/data
|
||||||
|
emptyDir: false
|
||||||
media:
|
media:
|
||||||
enabled: false
|
enabled: false
|
||||||
mountPath: /usr/src/paperless/media
|
mountPath: /usr/src/paperless/media
|
||||||
|
emptyDir: false
|
||||||
consume:
|
consume:
|
||||||
enabled: false
|
enabled: false
|
||||||
mountPath: /consume
|
mountPath: /usr/src/paperless/consume
|
||||||
|
emptyDir: false
|
||||||
export:
|
export:
|
||||||
enabled: false
|
enabled: false
|
||||||
mountPath: /export
|
mountPath: /usr/src/paperless/export
|
||||||
|
emptyDir: false
|
||||||
|
|
||||||
additionalContainers:
|
additionalContainers:
|
||||||
- name: consumer
|
- name: broker
|
||||||
image: thepaperlessproject/paperless:latest
|
image: redis:6.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
args: ['document_consumer']
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /usr/src/paperless/data
|
|
||||||
name: data
|
|
||||||
- mountPath: /usr/src/paperless/media
|
|
||||||
name: media
|
|
||||||
- mountPath: /consume
|
|
||||||
name: consume
|
|
||||||
- mountPath: /export
|
|
||||||
name: export
|
|
||||||
|
Loading…
Reference in New Issue
Block a user