-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Using the 0.8.0-SNAPSHOT image, but running on a Macbook and Docker, I think the image uses x86 emulation. There is a bug (perhaps unfixed) in how qemu relates to this emulation.
That resulted in the server dumping core with the message "qemu: uncaught target signal 6".
I worked to build the image for arm64 (aka mac M1 or M2 silicon) using the edit to the Dockerfile in #28 and using --platform=arm64 and that seems to fix the issue (after specifying --no-cache on the docker build. e.g.,
docker build --platform=linux/arm64 -t grobid/software-mentions:0.8.0-SNAPSHOT-arm64 --build-arg GROBID_VERSION=0.8.0-SNAPSHOT-arm64 --file Dockerfile.software .
Perhaps images could be built as multi platform with --platform=linux/amd64,linux/arm64 as described here:
https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
(but see below, that seemed to work briefly but now fails, which is very odd).