Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Use paperless-ngx init script #18

Open
JigSawFr opened this issue Jan 3, 2024 · 2 comments
Open

FR: Use paperless-ngx init script #18

JigSawFr opened this issue Jan 3, 2024 · 2 comments

Comments

@JigSawFr
Copy link

JigSawFr commented Jan 3, 2024

Hi there,
To automate this part https://github.com/jgillula/paperless-ngx-postprocessor#2-run-the-one-time-setup-script-inside-the-paperless-ngx-docker-container
I think it's better to use https://docs.paperless-ngx.com/advanced_usage/#custom-container-initialization
With this script:

#!/usr/bin/env bash
gosu 1000 /usr/src/paperless/postprocessor/setup_venv.sh

Path to adapt.

Have a nice day,

@janwidmer
Copy link

janwidmer commented Jan 6, 2024

Hey @JigSawFr, can you show me your docker-compose.yml, how you run the custom container initialization script?

My docker-compose volumes look like this:

    volumes:
      - ../data:/usr/src/paperless/data
      - ../media:/usr/src/paperless/media
      - ../export:/usr/src/paperless/export
      - /volume1/paperless-input:/usr/src/paperless/consume
      - /volume1/docker/paperless-ngx/config/paperless-ngx-postprocessor:/usr/src/paperless-ngx-postprocessor
      - /volume1/docker/paperless-ngx/config:/paperless_startup.sh:ro
image

My paperless_setup.sh script looks like this:
image

The console logs are not visible in the docker log of the paperless-webserver-1

Is this correct? docker compose up -d was working, but I don't know if the script was actually running..

@tribut
Copy link

tribut commented May 18, 2024

Is there a reason why the venv is not created on-demand from post_consume_script.sh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants