-
Notifications
You must be signed in to change notification settings - Fork 504
Docker #28
Docker #28
Conversation
That error looks to me like Pillow was compiled on a system that doesn't have ghostscript or the |
You should probably collaborate with @pitkley, since he's got some skin in this game as well: #2 (comment) |
Yeah, I saw @pitkley's Docker repo right after I added the pull request. I'm fine deferring to his if he wants to add it to this repo instead of keeping it separate. |
Alright then. I'm afraid I don't know much about Docker, so adoption of this PR will take some time and experimentation on my part as I want to understand whatever it is I'm merging :-) Like you, I'd prefer that the Dockerfile (and any required files) be part of this repo (once we're settled on how it should look/work). I just think it's kind of silly to see the both of you doing much the same thing, so I wanted to point you both toward each other. I'm going to mention this PR in the relevant issue to see if the folks there have any input. Unfortunately, I can't merge it into master until we know it works as expected though. |
Great to see another Dockerfile for Paperless. A few points, which might be biased:
Generally I think that supplying an official Dockerfile with Paperless is a good thing we should work towards. Right now though, I am not comfortable enough to create a PR for my image. I have not done enough testing and I would like some responses from other people using it first. Additionally, given how fast Paperless probably will be evolving, given e.g. the discussion in issue #3 about moving to Flask, an official image might be to early and people might expect to be able to easily migrate, which might not be the case. @TheConnMan: When you have completed your Dockerfile -- if you intend to go further with it -- let me know, I'll gladly test it and see if we can "extract" the best of both. For the time being, adding a notice to the README directing people towards issue #2, this PR and existing Docker images might also be something to think about! |
Your points on implementation of the Dockerfile are all solid, I agree that the approach you took in using the Python image and splitting up into multiple containers is the right way to go. I would have had to background one of the processes in a single container which wouldn't have been good practice. Not using the Vagrant script is for the best as well. As for the default user, I agree it's a security concern. I add the default user at runtime of the container (which would be runtime of your webapp container) so the username and password could be set with environment variables. Below are a few other points:
I don't have any plans of updating my Dockerfile and am happy to help you with yours as long as we can merge it into this repo so I can use it! |
Oh, I'm sorry, I missed that you create the user within the I agree with you on using Thanks for offering your help, one big help would be if you could try out my Docker image and see if you can make it work. If any problems come up or things are unclear, maybe create an issue over at my repository for the time being. |
Sounds good. I actually ran into the duplicate user issue when restarting a container yesterday. I bet we could make an external "Create User" Python script which checks if the user already exists before creating it. I'll take another look at your repo today and add any issues I find. For now I'll keep this pull request open so people can find the discussion. I'll close it when you make yours. |
Just as an FYI, I have opened and "finished" my PR #39 which (probably) replaces this one. |
Hi guys, as you may have noticed I just merged #39 so this PR is no longer required. I just wanted to say thanks to @TheConnMan for pioneering the Docker issue on this project, and even though we didn't end up using this PR, it was a good starting point. |
NOTE: Currently a work in progress, the document_consumer is not running and the appropriate Docker volumes have not been added.
Ref #2.
@danielquinn: I'm getting the following error from the PIL module when trying to run
python manage.py document_consumer
:Does that look familiar or do you have anything else I could try? I had to mess around with the PYTHONPATH because Docker wasn't picking up the default folders.