mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-05 16:19:43 -06:00
* re-add new testing harness * add healthcheck port and pick random grpc port to listen on * feat: parallel load tests and faster tests * make parallelism = 5 * fix: lint * add linter to pre * fix: add back rampup fixes * reduce matrix on PR, add matrix to pre-release step * make load tests less likely to block * make limit strategy group round robin * uncomment lines
33 lines
660 B
Docker
33 lines
660 B
Docker
# Base Go environment
|
|
# -------------------
|
|
FROM golang:1.24-alpine as base
|
|
WORKDIR /hatchet
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY /pkg ./pkg
|
|
COPY /internal ./internal
|
|
COPY /api ./api
|
|
COPY /cmd/hatchet-loadtest ./cli
|
|
|
|
# Go build environment
|
|
# --------------------
|
|
FROM base AS build-go
|
|
|
|
RUN go build -a -o ./bin/hatchet-load-test ./cli
|
|
|
|
# Deployment environment
|
|
# ----------------------
|
|
FROM alpine AS deployment
|
|
|
|
WORKDIR /hatchet
|
|
|
|
# openssl and bash needed for admin build
|
|
RUN apk update && apk add --no-cache gcc musl-dev openssl bash ca-certificates
|
|
|
|
COPY --from=build-go /hatchet/bin/hatchet-load-test /hatchet/
|
|
|
|
CMD /hatchet/hatchet-load-test
|