-
Notifications
You must be signed in to change notification settings - Fork 11
make docker: allow overriding $(DOCKER) command (e.g. podman) #220
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
base: master
Are you sure you want to change the base?
Changes from all commits
4062c3e
24c3ecf
8c80c07
ae23021
c711543
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| test/ | ||
| dist/ | ||
| build/ | ||
| repo/assets |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ export | |
|
|
||
| SHELL = /bin/bash | ||
| PYTHON = python3 | ||
| DOCKER = docker | ||
| PIP = pip3 | ||
| GIT_SUBMODULE = git submodule | ||
| LOG_LEVEL = INFO | ||
|
|
@@ -28,7 +29,7 @@ PYTEST_ARGS = | |
|
|
||
| # Docker container tag | ||
| DOCKER_TAG = 'ocrd/tesserocr' | ||
| DOCKER_BASE_IMAGE = docker.io/ocrd/core:v3.3.0 | ||
| DOCKER_BASE_IMAGE = docker.io/ocrd/core:latest | ||
|
|
||
| help: | ||
| @echo "" | ||
|
|
@@ -102,7 +103,7 @@ deps-test: | |
|
|
||
| # Build docker image | ||
| docker: repo/tesseract repo/tesserocr | ||
| docker build \ | ||
| $(DOCKER) build \ | ||
| --build-arg DOCKER_BASE_IMAGE=$(DOCKER_BASE_IMAGE) \ | ||
| --build-arg VCS_REF=$$(git rev-parse --short HEAD) \ | ||
| --build-arg BUILD_DATE=$$(date -u +"%Y-%m-%dT%H:%M:%SZ") \ | ||
|
|
@@ -122,7 +123,7 @@ $(TESSERACT_PREFIX)/bin/tesseract: build/tesseract/Makefile | |
| $(TESSERACT_PREFIX)/bin/lstmtraining: build/tesseract/Makefile | ||
| $(MAKE) -C build/tesseract training-install | ||
|
|
||
| TESSERACT_CONFIG ?= --disable-openmp --disable-shared CXXFLAGS="-g -O2 -fPIC -fno-math-errno -Wall -Wextra -Wpedantic" | ||
| TESSERACT_CONFIG ?= --disable-openmp --disable-shared CXXFLAGS="-g -O2 -fPIC -fno-math-errno -Wall -Wextra -Wpedantic -UNDEBUG" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bertsky, it's a bit strange if you add an unrelated commit to a pull request which was already reviewed by yourself. I am not sure that your change in line 126 is a good idea (debug code adds instructions that increase processing time), and you have not given a proper explanation of why you made it.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm afraid your change will do exactly what you wanted to avoid.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see this why we must at least avoid all this is a far cry from being satisfactory (libtesseract must use exceptions in the end!), just less insane (segfault)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So you prefer getting a SIGSEGV because of your change instead of getting an abort() like in the current configuration?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in other places like this we need
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No, segfault is obviously even worse, but I'm in a bind: the place that actually triggers my latest segfault/abort needs
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See sirfz/tesserocr#365 for how I would like this to be solved. |
||
| build/tesseract/Makefile: repo/tesseract/Makefile.in | ||
| mkdir -p $(@D) | ||
| cd $(@D) && $(CURDIR)/repo/tesseract/configure \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.