ISAITB / shacl-validator

Web and command-line application for the validation of RDF data.
https://joinup.ec.europa.eu/collection/interoperability-test-bed-repository/solution/rdf-validator
European Union Public License 1.2
16 stars 1 forks source link

multi-architecture images #8

Closed KristofVDB1 closed 5 months ago

KristofVDB1 commented 5 months ago

I ran into some problems trying to run a docker container using the isaitb/shacl-validator image. The problem I'm getting is

[Too many errors, abort]
 qemu: uncaught target signal 6 (Aborted) - core dumped

Dockerfile

FROM isaitb/shacl-validator:latest
COPY resources /validator/resources/
ENV validator.resourceRoot /validator/resources/

Server structure

Screenshot 2024-04-18 at 11 39 53

After running the docker run -d --name po-validator -p 8080:8080 po-validator:latest I received the following warning:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

I am indeed running the Docker container from an Apple device, but since it only gave me a warning I wasn't sure if that is indeed the cause for the failing container. Is it possible to use this image from a linux/arm64/v8 device?

costas80 commented 5 months ago

Thanks for raising this @KristofVDB1. Indeed multi-architecture images are not currently available but we already started looking into it. I'll let you know as soon as we have an update.

KristofVDB1 commented 5 months ago

@costas80 Thanks for the quick response! Looking forward to the update!

costas80 commented 5 months ago

@KristofVDB1, we have now published multi-architecture variants for all our images on the Docker Hub. For now we provide linux/amd64 (as was previously the case) and linux/arm64 but we could potentially add others in the future if there is demand.

In your specific case, linux/arm64/v8 is an alias for linux/arm64, so running docker pull isaitb/shacl-validator from your Apple device should get the correct image. If that does not work for some reason you can specify the platform explicitly through docker pull --platform linux/arm64 isaitb/shacl-validator.

Can you check and let me know if this update resolved your issue?

KristofVDB1 commented 5 months ago

@costas80, really impressed with the speed of delivery. Props to you guys!

I tried to run the exact same setup as yesterday and it started without any issues now. I'll be doing some testing with it the upcoming week, but so far it looks good. If something comes up again related to the architecture, I'll reopen this issue.

Thanks!

costas80 commented 5 months ago

Thanks for confirming @KristofVDB1.

@costas80, really impressed with the speed of delivery. Props to you guys!

I appreciate the kind words! Would also appreciate a star here and on the Docker Hub if you're happy with the validator :)