[GH-ISSUE #32] Docker image for 1.3.0 #26

Closed
opened 2026-02-25 21:31:01 +03:00 by kerem · 10 comments
Owner

Originally created by @sbonfert on GitHub (Jul 9, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/32

Paperless 1.3.0 was released some time ago. However, the provided docker images still seem to use 1.2.2 / 1.2.3.
Can you please update the docker image to 1.3.0?

Originally created by @sbonfert on GitHub (Jul 9, 2020). Original GitHub issue: https://github.com/ciur/papermerge/issues/32 Paperless 1.3.0 was released some time ago. However, the provided docker images still seem to use 1.2.2 / 1.2.3. Can you please update the docker image to 1.3.0?
kerem 2026-02-25 21:31:01 +03:00
Author
Owner

@frenos commented on GitHub (Jul 9, 2020):

Looking at the tags 1.2.3 was updated after 1.3 and is therefore newer/latest. Sadly there does not seem to be a docker container tagged with 1.3 as CI was introduced later.

<!-- gh-comment-id:656213912 --> @frenos commented on GitHub (Jul 9, 2020): Looking at the [tags](https://github.com/ciur/papermerge/tags) 1.2.3 was updated after 1.3 and is therefore newer/latest. Sadly there does not seem to be a docker container tagged with 1.3 as CI was introduced later.
Author
Owner

@ciur commented on GitHub (Jul 9, 2020):

I intentionally did not release docker image for version 1.3.0.

Let me explain:
99% of changes in version 1.3.0 are internal refactoring. You can call this version "Developer friendly version". There are no visible benefits for end user. Version 1.3.0 introduces Metadata indeed - but only internal code is there (models, tests). UI for using UI is basically missing. I included only basic UI just to get a feeling how it is to work with newly added metadata API.

Because of above reason - I don't plan to release docker image for 1.3.0, again - unless you are developer working on Papermerge - you won't see any benefit.

Version 1.4.0 on the other hand - it is entirely user experience oriented. All new polished and shiny UI is there. It will include awesome (I really love it) UI to manage metadata.
There will be docker image for version 1.4.0.

Version 1.4.0, altogether with docker image - will be out in August (I am not sure which part of August though).

I think this ticket is good to be closed, what do you say ?

<!-- gh-comment-id:656222027 --> @ciur commented on GitHub (Jul 9, 2020): I intentionally did not release docker image for version 1.3.0. Let me explain: 99% of changes in version 1.3.0 are internal refactoring. You can call this version "Developer friendly version". **There are no visible benefits for end user.** Version 1.3.0 introduces Metadata indeed - but only internal code is there (models, tests). UI for using UI is basically missing. I included only basic UI just to get a feeling how it is to work with newly added metadata API. Because of above reason - I don't plan to release docker image for 1.3.0, again - unless you are developer working on Papermerge - you won't see any benefit. Version 1.4.0 on the other hand - it is entirely user experience oriented. All new polished and shiny UI is there. It will include awesome (I really love it) UI to manage metadata. **There will be docker image for version 1.4.0.** Version 1.4.0, altogether with docker image - will be out in August (I am not sure which part of August though). I think this ticket is good to be closed, what do you say ?
Author
Owner

@sbonfert commented on GitHub (Jul 9, 2020):

The release notes mention: "SQLite is default database (Postresql is now optional, available via Plugin)"
Therefore I wanted to skip the setup of a dedicated Postgres-container with version 1.3.
Am I getting something wrong here?

<!-- gh-comment-id:656225435 --> @sbonfert commented on GitHub (Jul 9, 2020): The release notes mention: "SQLite is default database (Postresql is now optional, available via Plugin)" Therefore I wanted to skip the setup of a dedicated Postgres-container with version 1.3. Am I getting something wrong here?
Author
Owner

@ciur commented on GitHub (Jul 9, 2020):

You are absolutely right - starting with Papermege 1.3.0 - Postgresql is optional.

But it is little bit more complicated than that.
First of all you will need to migrate your data from 1.2.0 to 1.3.0. And I still did not include documentation for that. Action item on me.

Next, Postgresql was used because of its full text search - which works fantastically well (it places better matches at the top of search results). If you get rid of postgres and use sqlite3 instead (provided by default since 1.3.0) - searching experience will drop.. SQLite does not provide full text search benefits (it cannot weight which matches are better).

Also, important one, I did not create that plugin (that one to bring back fulll text search benefits of pg). Docker image which I plan to create will contain both postgresl dependency and yet to be created plugin.

I decided to include SQLite3 by default (instead of Postgresql) because it speeds up initial development setup. As I told you in previous comment - version 1.3.0 is developer friendly :).

<!-- gh-comment-id:656232707 --> @ciur commented on GitHub (Jul 9, 2020): You are absolutely right - starting with Papermege 1.3.0 - Postgresql is optional. But it is little bit more complicated than that. First of all you will need to migrate your data from 1.2.0 to 1.3.0. And I still did not include documentation for that. Action item on me. Next, Postgresql was used because of its [full text search ](https://www.postgresql.org/docs/12/textsearch.html)- which works fantastically well (it places better matches at the top of search results). If you get rid of postgres and use sqlite3 instead (provided by default since 1.3.0) - **searching experience will drop.**. SQLite does not provide full text search benefits (it cannot weight which matches are better). Also, important one, I did not create that plugin (that one to bring back fulll text search benefits of pg). Docker image which I plan to create will contain both postgresl dependency and yet to be created plugin. I decided to include SQLite3 by default (instead of Postgresql) because it speeds up initial development setup. As I told you in previous comment - version 1.3.0 is developer friendly :).
Author
Owner

@frenos commented on GitHub (Jul 9, 2020):

To give you feedback as a developer: Instead of having the sqlite feature, your /docker folder with the docker-composes was a lot more helpful. With that I was up to speed in 15min and was able to start exploring the code.
I mount my code into the container and have a shell there. I think with pycharm you can also use the gui debugger connecting into a container but I haven't tried it.

<!-- gh-comment-id:656256461 --> @frenos commented on GitHub (Jul 9, 2020): To give you feedback as a developer: Instead of having the sqlite feature, your /docker folder with the docker-composes was a lot more helpful. With that I was up to speed in 15min and was able to start exploring the code. I mount my code into the container and have a shell there. I think with pycharm you can also use the gui debugger connecting into a container but I haven't tried it.
Author
Owner

@sbonfert commented on GitHub (Jul 9, 2020):

What would you recommend for someone doing a fresh start now?
Should I set up papermerge 1.2.3 with postgres? Would I have to transition to sqlite with 1.4?
Or would you rather recommend to wait for 1.4?

<!-- gh-comment-id:656272436 --> @sbonfert commented on GitHub (Jul 9, 2020): What would you recommend for someone doing a fresh start now? Should I set up papermerge 1.2.3 with postgres? Would I have to transition to sqlite with 1.4? Or would you rather recommend to wait for 1.4?
Author
Owner

@ciur commented on GitHub (Jul 9, 2020):

@frenos

To give you feedback as a developer: Instead of having the sqlite feature, your /docker folder with the docker-composes was a lot more helpful. With that I was up to speed in 15min and was able to start exploring the code.
I mount my code into the container and have a shell there. I think with pycharm you can also use the gui debugger connecting into a container but I haven't tried it.

Here is a test for the efficiency of project X initial setup / how easy to to start dev environment for project X:

On new computer (with newly installed OS) a URL to open source project X is provided.
How much time you need to fix a bug/start project X on your new computer (1. install git, 2. clone repo 3. ... etc etc) ?

Answer to above question triggered all changes from release 1.3.0.
The fact that a project is easy to setup with docker - does not mean at all that project is simple to setup (or it is has overly complex initial setup).

<!-- gh-comment-id:656296057 --> @ciur commented on GitHub (Jul 9, 2020): @frenos > To give you feedback as a developer: Instead of having the sqlite feature, your /docker folder with the docker-composes was a lot more helpful. With that I was up to speed in 15min and was able to start exploring the code. > I mount my code into the container and have a shell there. I think with pycharm you can also use the gui debugger connecting into a container but I haven't tried it. Here is a test for the efficiency of project X initial setup / how easy to to start dev environment for project X: On new computer (with newly installed OS) a URL to open source project X is provided. How much time you need to fix a bug/start project X on your new computer (1. install git, 2. clone repo 3. ... etc etc) ? Answer to above question triggered all changes from release 1.3.0. The fact that a project is easy to setup with docker - does not mean at all that project is simple to setup (or it is has overly complex initial setup).
Author
Owner

@ciur commented on GitHub (Jul 10, 2020):

@sbonfert

What would you recommend for someone doing a fresh start now?
Should I set up papermerge 1.2.3 with postgres? Would I have to transition to sqlite with 1.4?
Or would you rather recommend to wait for 1.4?

I would recommend to wait for 1.4 I will release an alpha version (+docker image) in less than a month. This way you will avoid frustration of migration process.

<!-- gh-comment-id:656477380 --> @ciur commented on GitHub (Jul 10, 2020): @sbonfert > What would you recommend for someone doing a fresh start now? > Should I set up papermerge 1.2.3 with postgres? Would I have to transition to sqlite with 1.4? > Or would you rather recommend to wait for 1.4? I would recommend to wait for 1.4 I will release an alpha version (+docker image) in less than a month. This way you will avoid frustration of migration process.
Author
Owner

@sbonfert commented on GitHub (Jul 10, 2020):

Alright, then that is what I will do.
Thank you for your explanations and your suggestion.

<!-- gh-comment-id:656510966 --> @sbonfert commented on GitHub (Jul 10, 2020): Alright, then that is what I will do. Thank you for your explanations and your suggestion.
Author
Owner

@okoetter commented on GitHub (Sep 16, 2020):

Can anybody tell me how to setup a new 1.4.x installation with Docker using only sqlite and not Postgres? Is there another docker compose file or do I have to make some changes to the existing docker compose file?

<!-- gh-comment-id:693388928 --> @okoetter commented on GitHub (Sep 16, 2020): Can anybody tell me how to setup a new 1.4.x installation with Docker using only sqlite and not Postgres? Is there another docker compose file or do I have to make some changes to the existing docker compose file?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#26
No description provided.