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

Integration tests using Docker fail with Mac M1 (ARM) #109

Closed
fabapp2 opened this issue Apr 25, 2022 · 2 comments · Fixed by #114
Closed

Integration tests using Docker fail with Mac M1 (ARM) #109

fabapp2 opened this issue Apr 25, 2022 · 2 comments · Fixed by #114
Assignees

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented Apr 25, 2022

Describe the bug
Integration tests that use a Docker container fail with Mac M1

To Reproduce
Steps to reproduce the behavior:

  1. Run BootifyAnnotatedServletsIntegrationTest
  2. See error

Expected behavior
The application builds a Docker container and runs it using testcontainers

Stacktrace
missing compatible architecture (have 'i386,x86_64', need 'arm64e')

12:41:53.485 [main] ERROR o.t.d.DockerClientProviderStrategy -     UnixSocketClientProviderStrategy: failed with exception RuntimeException (java.lang.UnsatisfiedLinkError: /private/var/folders/sh/nw78y14d38jb_57ptd_k0jdr0000gq/T/jna-1226527383/jna14683793770511009461.tmp: dlopen(/private/var/folders/sh/nw78y14d38jb_57ptd_k0jdr0000gq/T/jna-1226527383/jna14683793770511009461.tmp, 0x0001): tried: '/private/var/folders/sh/nw78y14d38jb_57ptd_k0jdr0000gq/T/jna-1226527383/jna14683793770511009461.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e'))). Root cause UnsatisfiedLinkError (/private/var/folders/sh/nw78y14d38jb_57ptd_k0jdr0000gq/T/jna-1226527383/jna14683793770511009461.tmp: dlopen(/private/var/folders/sh/nw78y14d38jb_57ptd_k0jdr0000gq/T/jna-1226527383/jna14683793770511009461.tmp, 0x0001): tried: '/private/var/folders/sh/nw78y14d38jb_57ptd_k0jdr0000gq/T/jna-1226527383/jna14683793770511009461.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e')))

Environment (please complete the following information):

  • OS: Mac OSX on ARM/M1
  • JDK 11
openjdk version "11.0.14.1" 2022-02-08 LTS
OpenJDK Runtime Environment Zulu11.54+25-CA (build 11.0.14.1+1-LTS)
OpenJDK 64-Bit Server VM Zulu11.54+25-CA (build 11.0.14.1+1-LTS, mixed mode)

Additional context

  • Dependency to net.java.dev.jna:jna < 5.8.0 was brought in by spring-shell-starter and has been excluded.
  • Docker container created during test starts when using Docker docker run -it docker.io/library/jboss-sample:1.0.0, but with a 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
@fabapp2 fabapp2 self-assigned this Apr 25, 2022
@fabapp2
Copy link
Contributor Author

fabapp2 commented Apr 27, 2022

Using testcontainers 9baedef17589ff70f7a585c809e0b1beb27eff62 with jitpack for now
see #5121

@fabapp2 fabapp2 linked a pull request May 4, 2022 that will close this issue
@fabapp2
Copy link
Contributor Author

fabapp2 commented May 4, 2022

Problem with ibmcom/mq image not working on M1 persist, see #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant