Sign inSign up

szkiba/k6x

By szkiba

•Updated almost 3 years ago

Run k6 with extensions as easy as possible

Image
0

10K+

szkiba/k6x repository overview

This docker image can be used as a replacement for the official k6 docker image to run test scripts that use extensions. The basic use of the image is the same as using the official k6 image.

The image automatically provides k6⁠ with the extensions⁠ used by the tests. To do this, k6x⁠ analyzes the test script and creates a list of required extensions (it also parses the command line to detect output extensions). Based on this list, k6x builds (and caches) the k6 binary and runs it.

The build step is done using the go compiler included in the image. The partial results of the go compilation and build steps are saved to the volume in the /cache path (this is where the go cache and the go module cache are placed). By making this volume persistent, the time required for the build step can be significantly reduced.

The k6x docker builder (--builder docker) also uses this docker image. It creates a local volume called k6x-cache and mounts it to the /cache path. Thanks to this, the docker build runs almost at the same speed as the native build (apart from the first build).

Visit https://github.com/szkiba/k6x⁠ for more information.

Tag summary

Content type

Image

Digest

sha256:ef2bd526d…

Size

78.1 MB

Last updated

almost 3 years ago

docker pull szkiba/k6x