45 Commits

Author SHA1 Message Date
gawa971
e3f506c520 Enhancement: use apt only when needed docker-entrypoint.sh (#7756) 2024-09-23 23:46:03 -07:00
Trenton H
f292b607cd Chore: Use self-documenting long options in Docker startup scripts (#7275) 2024-07-16 10:27:12 -07:00
Trenton H
974cc70712 Don't assume the /tmp folder is where the user wants to place the scratch directory (#5948) 2024-02-28 22:46:24 +00:00
amo13
49459cabd8 Create parent dirs of data/media/consume if necessary (#5176)
* Create parent dirs of data/media/consume if necessary
* long --parents instead of short -p
2023-12-30 19:25:34 +00:00
Trenton Holmes
fd0988af3f Changes how the environment variables from a file are set and expands to allow any to be set this way 2022-12-29 17:40:26 -08:00
Trenton H
7af355191d Bakes the NLTK data into the image (~60mb) 2022-12-07 09:36:32 -08:00
Trenton Holmes
a514219565 Fixes the custom scripts not running as root 2022-12-01 07:21:25 -08:00
Trenton H
3d2f249e97 Fixes an issue with the install of languages and read-only variable 2022-11-10 17:25:39 -08:00
Trenton Holmes
ed7b82ecc8 Adds local and readonly to almost everything. Fully qualifies the path to binaries 2022-11-08 08:52:01 -08:00
Trenton H
d9bdb0b8e8 Adds skipping of NLTK data download if the feature appears disabled 2022-10-10 08:58:23 -07:00
Trenton Holmes
70b1988a55 Fixes the download and usage of the downloaded data 2022-10-10 08:58:23 -07:00
Trenton Holmes
8140f5aa33 Fixes CI unit testing 2022-10-10 08:58:23 -07:00
Trenton Holmes
66884ea035 Updates the pre-processing of document content to be much more robust, with tokenization, stemming and stop word removal 2022-10-10 08:58:23 -07:00
Trenton H
61bb45124a Fixes an issue where the consume directory wasn't included in the permissions fix at Docker entry 2022-09-16 07:52:33 -07:00
Dennis Gaida
cd83c8e7bf PAPERLESS_REDIS may be set via docker secrets
Best practice is for redis to be at least password protected: https://redis.io/docs/getting-started/.

Paperless uses `Redis.from_url` (5fe435048b/docker/wait-for-redis.py (L24)) to establish a connection to redis which already enables us to use username/password, e.g. `redis://username:password@redis:6379`.

The redis connection string therefore is a secret and needs to be able to leverage docker secrets, hence this PR.
2022-08-16 12:41:52 -07:00
Trenton Holmes
c6f380d01e Fixes minor linting 2022-08-03 13:26:04 -07:00
Aidan Stein
73ad5dcb85 negate second gosu command when running as paperless user 2022-07-15 11:00:46 -04:00
Aidan Stein
bd305e4a9c allow rootless (as paperless user) 2022-07-15 10:58:41 -04:00
Trenton Holmes
00059e9482 Implements reading from a Docker secrets file in place of an environment variable for certain settings 2022-07-03 10:56:01 +02:00
Trenton Holmes
a24b6e39d7 Makes sure the export folder also exists 2022-06-03 14:02:58 -07:00
Trenton Holmes
914ab5176e Adds quotes around usages that may be of a user defined directory
Co-authored-by: Felix E <felix@eckhofer.com>
2022-06-03 11:21:13 -07:00
Trenton Holmes
b004aa0f28 Setup the defined user folders instead of always using the defaults at Docker startup 2022-06-03 09:18:48 -07:00
Trenton Holmes
8878b933f8 Updates the Dockerfile to utilize our new base image 1.0 which provides the pre-compiled wheels for certain dependencies and most base packages 2022-03-30 09:09:50 -07:00
Schnuffle
81c16f6bc0 Corrections to pass pre-commit hooks 2022-03-20 15:58:37 +01:00
addi
f9928db04f fix issue 374 2022-03-18 23:26:04 +01:00
Quinn Casey
16a4c15adb Update docs, yml to -ngx 2022-03-02 10:03:37 -08:00
jonaswinkler
8751b11ac3 update docker entrypoint 2021-06-13 12:54:24 +02:00
jonaswinkler
732a843975 improved docker startup time 2021-05-19 22:26:51 +02:00
jonaswinkler
8ddf16643c Fix file permissions 2021-05-19 22:05:23 +02:00
Jonas Winkler
dc565bd035 correct file mode 2021-05-16 01:22:51 +02:00
Christopher Timm
b976d56ce8 Use gosu instead of sudo for easier configuration
#879
2021-04-26 19:06:30 -05:00
jonaswinkler
181bf5f6ef Merge branch 'dev' into feature/superuser-manager
# Conflicts:
#	docker/docker-entrypoint.sh
2021-04-17 14:10:56 +02:00
jonaswinkler
d3dd7b5100 Merge branch 'dev' into feature/superuser-manager 2021-04-17 14:01:42 +02:00
Chris Nagy
128f31e21b Fix env variable in docker entrypoint 2021-04-10 13:50:52 +02:00
Starbeamrainbowlabs
9ede9010c7 docker-entrypoint.sh: split non-root tasks into docker-prepare.sh 2021-04-08 00:03:55 +01:00
Starbeamrainbowlabs
bc78e7f4f9 docker: mark scripts as executable 2021-04-07 23:19:20 +01:00
jonaswinkler
05545aa59b force update of search index if out of date 2021-04-05 21:33:17 +02:00
Chris Nagy
271ca50930 Add superuser management script 2021-03-14 19:43:22 +01:00
jonaswinkler
f5029e6a43 add temporary directory during startup and ensure correct permissions 2021-01-21 01:02:41 +01:00
jonaswinkler
1d633b0bab added some messages to the docker startup script 2021-01-13 19:58:09 +01:00
jonaswinkler
660ff8ad45 fixed an issue with the docker entrypoint script. 2020-12-10 00:54:37 +01:00
jonaswinkler
1c30697e3b fixes #113 2020-12-09 23:45:53 +01:00
jonaswinkler
4d15831e30 fixes #87 2020-12-06 01:37:44 +01:00
Jonas Winkler
118e933f04 updated entrypoint script to wait for postgres 2020-11-21 20:14:48 +01:00
Jonas Winkler
12b70a13be getting paperless-ng ready for the first release. 2020-11-14 12:10:51 +01:00