gatling icon indicating copy to clipboard operation
gatling copied to clipboard

Make the docker image work on M1 Macs/Apple Sillicon

Open jchabik-evolution opened this issue 2 years ago • 3 comments

Tested for version 3.2.1 on 2 separate M1 Macs, running the container the following way: docker run -it --rm denvazh/gatling results in GATLING_HOME is set to /opt/gatling being printed. There is no option to run a simulation, neither is an error printed. We've tested this on 2 Intel-chip Macs and it'd worked fine. Would be very grateful for fixing this :)

jchabik-evolution avatar May 27 '22 10:05 jchabik-evolution

I want this as well. Needs to be able to build for arm64.

drairi avatar Oct 19 '22 13:10 drairi

For anyone else who comes here wanting the same thing, i made it work by going back to openjdk:8-jdk-alpine and following the steps in the most recent Dockerfile. Then i could build it for arm64.

I got this error: "OpenSSL is enabled in the Gatling configuration but it's not available on your architecture." which was fixed by adding to the gatling.conf

gatling {
  ssl {
    useOpenSsl = false
  }
}

If you want to bump GATLING_VERSION=3.8.4 you may also need to tweak gatling.conf like this:

gatling {
  core {
    directory {
      simulations = user-files/simulations
      resources = user-files/resources
    }
  }
}

You can pass --run-mode local to Docker if you don't want it to prompt you every time.

Finally, docker buildx is great for building a Docker image for multiple platforms at once.

drairi avatar Oct 19 '22 13:10 drairi

hi @drairi , can you share your Dockerfile so that we can see how you managed to pass through it ? Thank you.

nptri avatar Mar 27 '24 09:03 nptri