-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs/examples): Updating Tracetest - K6 Integration (#3771)
* chore(docs/examples): Updating Tracetest - K6 Integration * chore(docs/examples): Updating Tracetest - K6 Integration
- Loading branch information
Showing
7 changed files
with
153 additions
and
118 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
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
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 +1,3 @@ | ||
TRACETEST_API_KEY= | ||
TRACETEST_API_TOKEN= | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:1.21-alpine as builder | ||
|
||
WORKDIR /app | ||
|
||
ENV CGO_ENABLED 0 | ||
RUN go install go.k6.io/xk6/cmd/xk6@latest | ||
|
||
RUN xk6 build v0.50.0 --with github.com/kubeshop/xk6-tracetest | ||
|
||
FROM alpine | ||
|
||
COPY --from=builder /app/k6 /bin/ | ||
COPY ./import-pokemon.js . | ||
ENV XK6_TRACETEST_API_TOKEN=your-api-token | ||
|
||
ENTRYPOINT [ "k6", "run", "/import-pokemon.js", "-o", "xk6-tracetest"] |
Oops, something went wrong.