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

Add docker build target and introduce pyprojct.toml #18

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Add docker build target and introduce pyprojct.toml #18

merged 3 commits into from
Oct 22, 2024

Conversation

joschrew
Copy link
Contributor

The main purpose of this PR is to provide a Dockerfile and a makefile target/task to build the image for this processor. Also I switched from setup.py to pyproject.toml. The so far used setup.py was not working for me to successfully install the processor in the dockerimage.
I also "just" added the Apache License, because ocrd-core uses the same. I saw that many processors use MIT license, maybe that is better to use? I think the dependencies from requirements.txt all have BSD License so are compatible with Apache 2 License. So from my point of view this should fit but other than that I have no idea if it is a good idea to add the license. Maybe that should be done in a separate step but maybe this can be done in one go here too.

This is a draft for now because I am not sure about the license. Other than that I have tested the froc-dockerfile and the installation with pyproject.toml and it is working for me, so ready to be merged in this regards.

@joschrew joschrew requested a review from kba October 11, 2024 13:54
Copy link
Member

@kba kba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only I would base it on the latest v2.70.0.

Apache2 is the right license, it's what we agreed to use wherever possible in phases II and III of OCR-D.

Dockerfile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@joschrew joschrew marked this pull request as ready for review October 16, 2024 14:52
@kba kba merged commit 5a5d774 into main Oct 22, 2024
4 checks passed
@kba kba deleted the dockerfile branch October 22, 2024 14:05
@joschrew joschrew mentioned this pull request Oct 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants