Installing k6 in a docker image

Hi @rlal

Happy to help!

You mention you hare a repository with the tests and you run them with every build. Are you using any CI/CD tool for this (Gitlab, Azure, etc.)?

Usually I would recommend just using the official docker image and mount the volume where the scripts are. Though if you are running a concrete CI for the build we can look into an integration.

You could probably have a Dockerfile that extends the official image, FROM grafana/k6:latest, and copy the scripts locally into that image. However, it’s probably not worth it as you would always need to build the image when changing the scripts.

If you can provide a bit more context we can further advice.

Cheers!