M1

Running Oracle XE with TestContainers on Apple Silicon

Posted on by  
Tom de Vroomen

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

Continue reading →

shadow-left