You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have two options for creating k6 binaries: using [Go and xk6](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-go/) or [Docker](https://grafana.com/docs/k6/latest/extensions/build-k6-binary-using-docker/):
I am using several extensions, like xk6-file and also xk6-output-statsd. So, I want to be able to build a custom binary with these two extensions and also xk6-kafka.
Hi @mostaf , I think the point of using the docker containers to build is that we will not need Go installed locally at all.
After further research, it looks like this fix worked: grafana/xk6#122
After updating my docker image with docker pull grafana/k6, my initial command above worked.
One request that might fix this, would be to add a description in the README of how people can use the docker images to build xk6-kafka instead of using the local Go toolchain. I can draft this out soon, if you like.
The Grafana xk6 documentation page describes this way to build a
k6
binary with extensions:https://grafana.com/docs/k6/latest/extensions/#xk6-makes-custom-binaries
I am using several extensions, like
xk6-file
and alsoxk6-output-statsd
. So, I want to be able to build a custom binary with these two extensions and alsoxk6-kafka
.When I run:
I see this failure:
It looks like
xk6-kafka
requires a newer version of Go than is bundled with the Grafanaxk6
docker image.I would expect that this extension will support both ways of building that are specified in the Grafana docs.
It looks like this used to be supported, as Grafana references
xk6-kafka
in their docker image examples: https://hub.docker.com/r/grafana/xk6/I can help make whatever updates necessary, if I am pointed in the right direction. Thank you!
The text was updated successfully, but these errors were encountered: