Closed po45ke95 closed 1 week ago
Hi @po45ke95,
do you get this error during the docker build
command? I tried it and I don't get the same issue.
Did you change the Dockerfile?
Yes @codebien I tried docker build and get those error. This is the version of the Dockerfile that I modified and can use.
FROM golang:1.20-alpine3.17 as builder
WORKDIR $GOPATH/src/go.k6.io/k6
ADD . .
RUN apk --no-cache add git
RUN go install go.k6.io/xk6/cmd/xk6@latest
RUN go mod init k6
RUN xk6 build --with github.com/grafana/xk6-output-influxdb@latest --output /tmp/k6
FROM alpine:3.17
RUN apk add --no-cache ca-certificates && \
adduser -D -u 12345 -g 12345 k6
COPY --from=builder /tmp/k6 /usr/bin/k6
USER 12345
WORKDIR /home/k6
ENTRYPOINT ["k6"]
This is no required, this sounds like a misconfiguration on your machine.
Please, provide a GitHub repository with a failing CI so we can debug the commands. Otherwise, this sounds like a question to open on a Docker community forum.
same problem here and @po45ke95 solution worked, I'm on arch-linux
I can reproduce this error on Ubuntu 24.04. I don't think this is a CI/CD error.
I've updated the Dockerfile with the most recent k6, Alpine and Go version. A new v0.5.0
version of the extension is available. Please, retry and if you continue to get the error do a new report.
Used the sample Dockerfile will get those error:
=> ERROR [builder 6/6] RUN xk6 build --with github.com/grafana/xk6-output-influxdb=. --output /tmp/k6 0.5s