grafana / xk6

Build k6 with extensions
Apache License 2.0
215 stars 20 forks source link

build: support for building docker image on multiple platforms #76

Closed sfat closed 11 months ago

sfat commented 11 months ago

current latest xk6 docker image:

docker run --rm -e GOOS=darwin -e CGO_ENABLED=1 -u "$(id -u):$(id -g)" -v "$PWD:/xk6" \
            grafana/xk6 build master \
            --with github.com/mostafa/xk6-kafka \
            --with github.com/grafana/xk6-output-influxdb@bump-k6

Time duration:

time    0.05s user 0.04s system 0% cpu 3:36.35 total

custom image created specifically for arm64:

docker run --rm -e GOOS=darwin -e CGO_ENABLED=1 -u "$(id -u):$(id -g)" -v "$PWD:/xk6" \
            xk6-andrei build master \
            --with github.com/mostafa/xk6-kafka \
            --with github.com/grafana/xk6-output-influxdb@bump-k6

Time duration:

time  0.04s user 0.03s system 0% cpu 33.783 total
CLAassistant commented 11 months ago

CLA assistant check
All committers have signed the CLA.

sfat commented 11 months ago

seems that there's another PR already for this. closing this one