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

Docker build for multi-architecture amd/arm #1165

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

lfoppiano
Copy link
Collaborator

@lfoppiano lfoppiano commented Sep 14, 2024

Finally I nailed it!

This PR provide a multi-architecture build for amd64/arm64. I've switched to the eclipse-adoptium-17-jdk/jre but, for the moment, I'm using ubuntu 20.04 (focal) instead of ubuntu 22. For now Is limited to the manual build for the CRF only image.

This requires some tests, here here the resulting image.

This PR should help to solve #1089 and #928

# Conflicts:
#	.github/workflows/ci-build-manual-crf.yml
@coveralls
Copy link

coveralls commented Sep 20, 2024

Coverage Status

coverage: 40.754% (-0.01%) from 40.767%
when pulling 7ea5f74 on multi-arch-docker-image
into f501033 on master.

@lfoppiano lfoppiano marked this pull request as draft November 20, 2024 16:27
@heijligers
Copy link

I'm getting

rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2

when trying to run on macos m1

@lfoppiano
Copy link
Collaborator Author

@heijligers which image did you try?

This one was correctly built with multi arch and arm support: lfoppiano/grobid:latest-crf-multi-arch but I did not manage to get it to work in a stable way.

My next step was to try to solve this issue with spawning process by looking on a way to have a conditional decision in the Dockerfile

Any help is welcome for this issue 🙂

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.

3 participants