Skip to content

Instantly share code, notes, and snippets.

@kjivan
Created May 17, 2024 12:51
Show Gist options
  • Save kjivan/abdccc1ff8e55679e95c8bcd89bcbd35 to your computer and use it in GitHub Desktop.
Save kjivan/abdccc1ff8e55679e95c8bcd89bcbd35 to your computer and use it in GitHub Desktop.

Unfortunately Oracle databases aren’t compatible with the new Apple Silicon CPU architecture. Due to this fact you’re not able to run an Oracle XE image with TestContainers on your brand-new MacBook, but there’s a workaround!

TLDR;

Install colima

Run colima start --arch x86_64 --memory 4

Set TestContainers env vars

export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock export DOCKER_HOST="unix://${HOME}/.colima/docker.sock" Run your tests based on Gerald Venzl's Oracle XE image

Source: https://blog.jdriven.com/2022/07/running-oracle-xe-with-testcontainers-on-apple-silicon/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment