-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update tests Dockerfile to copy only required files (#13961)
- Loading branch information
1 parent
9e74eee
commit 6b3f6e2
Showing
1 changed file
with
9 additions
and
1 deletion.
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,10 +1,18 @@ | ||
ARG BASE_IMAGE | ||
ARG IMAGE_VERSION=latest | ||
FROM ${BASE_IMAGE}:${IMAGE_VERSION} | ||
FROM ${BASE_IMAGE}:${IMAGE_VERSION} AS build-env | ||
|
||
ARG SUITES=chaos migration performance reorg smoke soak benchmark | ||
|
||
COPY . testdir/ | ||
WORKDIR /go/testdir | ||
RUN /go/testdir/integration-tests/scripts/buildTests "${SUITES}" | ||
|
||
FROM ${BASE_IMAGE}:${IMAGE_VERSION} | ||
|
||
RUN mkdir -p /go/testdir/integration-tests/scripts | ||
COPY --from=build-env /go/pkg /go/pkg | ||
COPY --from=build-env /go/testdir/integration-tests/*.test /go/testdir/integration-tests/ | ||
COPY --from=build-env /go/testdir/integration-tests/scripts /go/testdir/integration-tests/scripts/ | ||
|
||
ENTRYPOINT ["/go/testdir/integration-tests/scripts/entrypoint"] |