-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add variable in Dockerfile to prepare renovate integration
- Loading branch information
1 parent
5c02512
commit 0625194
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |