Skip to content

Commit

Permalink
add variable in Dockerfile to prepare renovate integration
Browse files Browse the repository at this point in the history
  • Loading branch information
JCL38-ORANGE committed Feb 20, 2025
1 parent 5c02512 commit 0625194
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Build the k6 binary with the extension
FROM golang:1.23.4 as builder

RUN go install go.k6.io/xk6/cmd/xk6@latest
RUN xk6 build --output /k6 --with github.com/GhMartingit/[email protected] --with github.com/grafana/[email protected] --with github.com/grafana/[email protected] --with github.com/grafana/[email protected] --with github.com/grafana/[email protected]
ENV GRAFANA_K6_VERSION="0.56.0"
ENV XK6_MONGO_VERSION="0.1.3"
ENV XK6_SQL_DRIVER_POSTGRES_VERSION="0.1.0"
ENV XK6_SQL_DRIVER_MYSQL_VERSION="0.1.0"
ENV XK6_SQL_VERSION="1.0.1"
ENV XK6_LOKI_VERSION="1.0.0"
ENV XK6_BUILDER_VERSION="0.14.3"

RUN go install go.k6.io/xk6/cmd/xk6@v${XK6_BUILDER_VERSION}
RUN xk6 build --output /k6 \
--with github.com/GhMartingit/xk6-mongo@v${XK6_MONGO_VERSION} \
--with github.com/grafana/xk6-sql-driver-postgres@v${XK6_SQL_DRIVER_POSTGRES_VERSION} \
--with github.com/grafana/xk6-sql-driver-mysql@v${XK6_SQL_DRIVER_MYSQL_VERSION} \
--with github.com/grafana/xk6-sql@v${XK6_SQL_VERSION} \
--with github.com/grafana/xk6-loki@v${XK6_LOKI_VERSION}

# Use the operator's base image and override the k6 binary
FROM grafana/k6:0.56.0
FROM grafana/k6:${GRAFANA_K6_VERSION}
COPY --from=builder /k6 /usr/bin/k6

0 comments on commit 0625194

Please sign in to comment.