-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
promql: Dockerized the tool; split cases and config for easier reuse.
Additionally updated docs. Motivation for this is that we can now set automated tests where in future we might want to provide docker images with exact set of test cases in versioned image. See automated use of it in Thanos: thanos-io/thanos#4781 Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
- Loading branch information
Showing
6 changed files
with
329 additions
and
250 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:1.16 as build-env | ||
|
||
WORKDIR /go/src/promql | ||
COPY . /go/src/promql | ||
|
||
RUN go build ./cmd/promql-compliance-tester | ||
|
||
FROM quay.io/prometheus/busybox | ||
COPY --from=build-env /go/src/promql/promql-compliance-tester / | ||
COPY --from=build-env /go/src/promql/promql-compliance-cases.yml / | ||
COPY --from=build-env /go/src/promql/promql-compliance-tester.yml / | ||
|
||
ENTRYPOINT ["/promql-compliance-tester"] |
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.