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

Support for linux/arm(64/v8) docker images #149

Closed
beepsoft opened this issue Jan 26, 2023 · 7 comments
Closed

Support for linux/arm(64/v8) docker images #149

beepsoft opened this issue Jan 26, 2023 · 7 comments

Comments

@beepsoft
Copy link

Hi,

I just tried to install LinkedDataHub on my development M1 MacBook Pro and docker-compose fails with:

linkeddatahub-varnish-end-user-1  | Error:
linkeddatahub-varnish-end-user-1  | Message from VCC-compiler:
linkeddatahub-varnish-end-user-1  | Assert error in vju_subproc(), mgt/mgt_jail_unix.c line 212:
linkeddatahub-varnish-end-user-1  |   Condition((initgroups(vju_user, vju_gid)) == 0) not true.
linkeddatahub-varnish-end-user-1  |   errno = 1 (Operation not permitted)
linkeddatahub-varnish-end-user-1  | qemu: uncaught target signal 6 (Aborted) - core dumped
linkeddatahub-varnish-end-user-1  | Running VCC-compiler failed, signal 6
linkeddatahub-varnish-end-user-1  | VCL compilation failed

As I see all atomgraph images on dockerhub support only linux/amd64. Most of them seem to work fine (although quite slow) via qemu on M1, but the atomgraph/varnish:6.0.11 images used by the varnish-admin and varnish-end-user services fail with the above error.

Would it be possible to build and publish images to dockerhub supporting linux/arm64/v8 as well? Or provide a workaround to build these images when running docker-compose up --build in LinkedDataHub?

@namedgraph
Copy link
Member

Thanks for the report. Hard to say anything right now because my docker-compose up --build on M1 hangs on this Dockerfile command:
https://github.com/AtomGraph/LinkedDataHub/blob/master/Dockerfile#L175

Supposedly there's a way to run Docker with Rosetta on Mac, but I don't see that option under "Features in development" :/

@namedgraph
Copy link
Member

After running Terminal in Rosetta, I get the same error. No idea what the cause is :) I'll write to the Varnish list.

@namedgraph
Copy link
Member

@beepsoft
Copy link
Author

Thanks for the report. Hard to say anything right now because my docker-compose up --build on M1 hangs on this Dockerfile command: https://github.com/AtomGraph/LinkedDataHub/blob/master/Dockerfile#L175

I also encountered this. But after a couple of trials it did execute all the keytool -import commands.

As for Varnish: my current workaround is that I copied the contents of https://github.com/AtomGraph/varnish to LinkedDataHub and used

  varnish-admin:
    build: ./varnish

instead of

  varnish-admin:
    image: atomgraph/varnish:6.0.11

in docker-compose.yaml. With all these and with a little luck with ./import-letsencrypt-stg-roots.sh I could start the project.

Anyways, thanks for taking care of M1 issues!

@beepsoft
Copy link
Author

I am running Docker Desktop 4.16.2 (95914), Docker Engine Engine: 20.10.22 and just tried the "Use Rosetta for x86/amd64 emulation on Apple Silicon" option. Now it seems to start all right with the stock docker-compose.yml:

linkeddatahub-varnish-admin-1     | Debug: Version: varnish-6.0.11 revision a3bc025c2df28e4a76e10c2c41217c9864e9963b
linkeddatahub-varnish-admin-1     | Debug: Platform: Linux,5.15.49-linuxkit,x86_64,-junix,-smalloc,-sdefault,-hcritbit
linkeddatahub-varnish-end-user-1  | Debug: Version: varnish-6.0.11 revision a3bc025c2df28e4a76e10c2c41217c9864e9963b
linkeddatahub-varnish-end-user-1  | Debug: Platform: Linux,5.15.49-linuxkit,x86_64,-junix,-smalloc,-sdefault,-hcritbit

Even ./import-letsencrypt-stg-roots.sh runs all right (tried multiple times).

@namedgraph
Copy link
Member

@beepsoft can we consider this solved?

@beepsoft
Copy link
Author

With Rosetta enabled it is ok now as a workaround until you are able to build arm images.

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

No branches or pull requests

2 participants