Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Last active March 12, 2022 00:03
Show Gist options
  • Save barbietunnie/4bffd388bdfd5c4812483708fdae0625 to your computer and use it in GitHub Desktop.
Save barbietunnie/4bffd388bdfd5c4812483708fdae0625 to your computer and use it in GitHub Desktop.
Running TestContainers on Apple Silicon (M1)

Running TestContainers on Apple Silicon (M1)

TestContainers currently do not run on Apple SIlicon (M1) due to missing architecture issues.

To get around this issue, add JNA as a dependency in your project:

For Maven projects -

<dependency>
   <groupId>net.java.dev.jna</groupId>
   <artifactId>jna</artifactId>
   <version>5.8.0</version>
   <scope>test</scope>
</dependency>

For Gradle projects:

testImplementation 'net.java.dev.jna:jna-platform:5.8.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment