-
Notifications
You must be signed in to change notification settings - Fork 33
CD: also deploy CUDA ML variants, and build multi-platform images #1239
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
Conversation
|
Useful if we want to starting configuring processor module Dockerfiles based on core-cuda-tf1, tf2 or torch instead of just core or core-cuda. (This in turn can be useful for ocrd_all with service containers, because most of the layers can be shared.) |
include ARMv7 (Cortex-A...), ARMv8 (M1...), Power9 (HPC)
|
Last two commits: I am experimenting with getting builds for other architectures as well. However, further changes are required, because there are usually no OpenCV and lxml binaries available for those platforms. For lxml it suffices to add But for opencv-python-headless, on |
- make build backend configurable (DOCKER_BUILD), default to docker build again - on CD, user docker buildx build --push --platform ..., so we can build and publish multi-platform images - make tags configurable and multi-valued (DOCKER_TAG), so multiple registries can be pushed to without extra aliasing/pushing
|
So in b2ae951, in order to get opencv-python-headless to compile via sdist on arm/v7, which due to In the current latest on Dockerhub one can see a preview of the multi-platform build (still only for ocrd/core there). |
Thus, in 67f77ae I disabled that platform for now. See here for why this is currently not fixable. |
|
@MehmedGIT can you please help? The CI fails for py310 ubuntu:22 only. The only context is Could this be (previously undetected) a timing glitch? |
|
@bertsky, I face that issue from time to time as well. Usually, restarting the test helps. I think we could improve that by increasing the retries in the health check in the docker-compose file and make it 90 instead of 30: healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 1s
timeout: 3s
retries: 90Sometimes starting the mongo db takes longer than the expected health check total timeout. |
|
So the last commit ensured that Github will show our pytest and flake8 results directly. However, IMO we should modify our Makefile to make sure that …will not pick up its results. |
|
Also, does anybody know what's wrong with the Scrutinizer setup? |
AFAICS it hangs because |
No description provided.