-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Trap xk6 process and terminate properly * xk6 dockerfile with tini * Create and delete holder k6 scenario defaults * xk6 statsd extention * Docker compose * k6: teardown file management * k6: bake scripts into container * 200+204 valid for deleting tenants * Improved error handling and retry functionality * waitForSSEProofDoneRequest from the holder's perspective
- Loading branch information
Showing
12 changed files
with
300 additions
and
88 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 |
---|---|---|
|
@@ -5,12 +5,24 @@ WORKDIR /app | |
RUN go install go.k6.io/xk6/cmd/[email protected] | ||
RUN xk6 build v0.56.0 --output /app/xk6 \ | ||
--with github.com/avitalique/[email protected] \ | ||
--with github.com/phymbert/[email protected] | ||
--with github.com/phymbert/[email protected] \ | ||
--with github.com/LeonAdato/xk6-output-statsd@latest | ||
|
||
FROM docker.io/alpine:3 | ||
RUN apk add --no-cache bash | ||
|
||
COPY --from=builder /app/xk6 /usr/local/bin/xk6 | ||
|
||
USER nobody | ||
# Add Tini | ||
ENV TINI_VERSION v0.19.0 | ||
RUN apk add --no-cache tini | ||
|
||
ADD scripts /k6/scripts | ||
ADD scenarios /k6/scenarios | ||
ADD libs /k6/libs | ||
ADD env.sh /k6/env.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/xk6"] | ||
ENTRYPOINT ["/bin/bash"] | ||
WORKDIR /k6 | ||
|
||
USER nobody |
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,46 @@ | ||
services: | ||
xk6: | ||
build: . | ||
container_name: xk6 | ||
image: xk6 | ||
tty: true | ||
depends_on: | ||
datadog: | ||
condition: service_healthy | ||
volumes: | ||
# - ./output:/k6/output | ||
# - .env.local:/k6/.env.local | ||
- ../k6:/k6 | ||
|
||
entrypoint: /bin/bash | ||
command: ./scripts/main.sh -c batch | ||
environment: | ||
- K6_STATSD_ADDR=datadog:8125 | ||
- K6_CONSOLE_OUTPUT_FANCY=true | ||
- BASE_HOLDER_PREFIX=dev9 | ||
- BASE_VUS=20 | ||
- BASE_ITERATIONS=10 | ||
- TOTAL_BATCHES=5 | ||
- VERSION=latest | ||
- ISSUERS=issuer1 | ||
|
||
datadog: | ||
image: datadog/agent:latest | ||
container_name: datadog | ||
healthcheck: | ||
test: ["CMD", "agent", "health"] | ||
interval: 5s | ||
timeout: 3s | ||
retries: 5 | ||
env_file: | ||
- .env.local # Only load API key from here | ||
environment: | ||
- DD_SITE=datadoghq.eu | ||
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=1 | ||
- DD_HOSTNAME=k6-metrics | ||
- DD_DOGSTATSD_STATS_ENABLE=true | ||
- DD_PROCESS_AGENT_ENABLED=false | ||
- DOCKER_CONTENT_TRUST=1 | ||
- DD_LOG_LEVEL=warn | ||
ports: | ||
- "8125:8125/udp" |
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
Oops, something went wrong.