-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathtest.Dockerfile
33 lines (26 loc) · 1.34 KB
/
test.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG BASE_IMAGE
ARG IMAGE_VERSION=latest
FROM ${BASE_IMAGE}:${IMAGE_VERSION} AS build-env
WORKDIR /go/testdir
RUN mkdir -p /go/testdir/integration-tests/load
# Deplyment module uses a local replace for latest code
COPY deployment/go.mod deployment/go.sum /go/testdir/deployment/
COPY go.mod go.sum ./
COPY integration-tests/go.mod integration-tests/go.sum ./integration-tests/
COPY integration-tests/load/go.mod integration-tests/load/go.sum ./integration-tests/load/
RUN cd integration-tests && go mod download
RUN cd integration-tests/load && go mod download
COPY . .
ARG SUITES=chaos soak benchmark load ccip-load
RUN /go/testdir/integration-tests/scripts/buildTests "${SUITES}"
FROM ${BASE_IMAGE}:${IMAGE_VERSION}
RUN mkdir -p /go/testdir/integration-tests/scripts
# Dependency of CosmWasm/wasmd
COPY --from=build-env /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/internal/api/libwasmvm.*.so /usr/lib/
RUN chmod 755 /usr/lib/libwasmvm.*.so
COPY --from=build-env /go/testdir/integration-tests/*.test /go/testdir/integration-tests/
COPY --from=build-env /go/testdir/integration-tests/ccip-tests/*.test /go/testdir/integration-tests/
COPY --from=build-env /go/testdir/integration-tests/scripts /go/testdir/integration-tests/scripts/
RUN echo "All tests"
RUN ls -l /go/testdir/integration-tests/*.test
ENTRYPOINT ["/go/testdir/integration-tests/scripts/entrypoint"]