-
Notifications
You must be signed in to change notification settings - Fork 96
/
Dockerfile.osde2e
35 lines (26 loc) · 990 Bytes
/
Dockerfile.osde2e
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
34
35
FROM registry.ci.openshift.org/openshift/release:golang-1.20 AS builder
ENV PKG=/go/src/github.com/integr8ly/integreatly-operator/
WORKDIR ${PKG}
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
COPY vendor ./vendor
COPY test ./test
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download
# Copy the go source
COPY apis/ apis/
COPY controllers/ controllers/
COPY pkg ./pkg
COPY manifests ./manifests
COPY version ./version
COPY utils ./utils
# copy make
COPY make ./make
COPY Makefile ./
# compile test binary
RUN make test/compile/osde2e
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
COPY --from=builder /go/src/github.com/integr8ly/integreatly-operator/managed-api-test-harness.test managed-api-test-harness.test
ENTRYPOINT [ "/managed-api-test-harness.test", "-test.v", "-ginkgo.v", "-ginkgo.progress", "-ginkgo.no-color" ]