Skip to content

Commit

Permalink
update tests Dockerfile to copy only required files (#13961)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier authored Jul 31, 2024
1 parent 9e74eee commit 6b3f6e2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion integration-tests/test.Dockerfile
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"]

0 comments on commit 6b3f6e2

Please sign in to comment.