-
Notifications
You must be signed in to change notification settings - Fork 10
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
Running in a docker volume doesn't work #84
Comments
@kba, I assume you meant BTW, You should at least see a new PAGE output. I think what's happening is that the runtime parameters do not get passed to the processor somehow. Here's why:
Here is a log output (obtained only via
|
But as far as I can see the decorators and processor class are all set up correctly. Something wrong with your |
I gave up debugging this because these files are not the same: |
Yeah, I should have been clearer: I built ocrd/tesserocr locally from the edge branch.
Yeah, I just want to ensure that the behavior for pip-installed and docker-run is the same. Binarization is a bad example, I agree.
That could well be, thanks, it's a lead. |
It's confusing. The first link should be https://github.com/OCR-D/ocrd_tesserocr/blob/edge/Dockerfile (i.e. built from the DockerHub only displays the dockerfile (and README) of the master branch but is configured to build If you are still willing to debug: The dockerfile in the edge branch builds this image on dockerhub: https://hub.docker.com/layers/ocrd/tesserocr/edge/images/sha256-1f2a30d2f2c2dfc81ba97387a51678c557f24fea672c1ac3670f70ea49f7d153 |
I'll check it next week! |
This looks better (note the quotes):
Suggested fix (so the quotes aren't needed anymore): diff --git a/Dockerfile b/Dockerfile
index c7b5888..0a84f03 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,4 +21,4 @@ RUN apt-get update && \
RUN pip3 install --upgrade pip
RUN make PYTHON=python3 PIP=pip3 deps install
-ENTRYPOINT ["/bin/sh", "-c"]
+ENTRYPOINT [] |
That was it! You have to put all arguments into a single shell-expanded argument.
Great! That's not going to work with our process substitution expressions (for ad-hoc parameter JSON files), but we should have the immediate JSON syntax by now. @kba Can you recommend that for module projects' docker files in general? |
Thanks!
Indeed we should. |
This will run
ocrd-tesserocr-binarize
but will only change the serialization of themets.xml
and add the agent but not do the actual work. What am I doing wrong?@mikegerber @bertsky @wrznr Input appreciated, thanks!
The text was updated successfully, but these errors were encountered: