You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Integration tests that use a Docker container fail with Mac M1
To Reproduce
Steps to reproduce the behavior:
Run BootifyAnnotatedServletsIntegrationTest
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
The text was updated successfully, but these errors were encountered:
Describe the bug
Integration tests that use a Docker container fail with Mac M1
To Reproduce
Steps to reproduce the behavior:
BootifyAnnotatedServletsIntegrationTest
Expected behavior
The application builds a Docker container and runs it using testcontainers
Stacktrace
missing compatible architecture (have 'i386,x86_64', need 'arm64e')
Environment (please complete the following information):
Additional context
net.java.dev.jna:jna
< 5.8.0 was brought in by spring-shell-starter and has been excluded.docker run -it docker.io/library/jboss-sample:1.0.0
, but with a warningThe text was updated successfully, but these errors were encountered: