Skip to content

Commit

Permalink
update tests Dockerfile to copy only required files
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Jul 30, 2024
1 parent 7147653 commit eee9c74
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 eee9c74

Please sign in to comment.