-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathContainerfile
More file actions
31 lines (22 loc) · 953 Bytes
/
Containerfile
File metadata and controls
31 lines (22 loc) · 953 Bytes
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
# Will be replaced in the CI
FROM golang:1.21 AS builder
WORKDIR /src
COPY ./ ./
RUN go build -o /bin/openstack-test ./cmd/openshift-tests
# Test extension builder stage (added by ote-migration)
FROM golang:1.21 AS test-extension-builder
RUN mkdir -p /go/src/github.com/openshift/openstack-test
WORKDIR /go/src/github.com/openshift/openstack-test
COPY . .
RUN make tests-ext-build && \
cd bin && \
tar -czvf openstack-test-test-extension.tar.gz openstack-test-tests-ext && \
rm -f openstack-test-tests-ext
# Will be replaced in the CI with registry.ci.openshift.org/ocp/4.y:tools
FROM registry.access.redhat.com/ubi8/ubi
COPY --from=builder /bin/openstack-test /usr/bin/
# Copy test extension binary (added by ote-migration)
COPY --from=test-extension-builder /go/src/github.com/openshift/openstack-test/bin/openstack-test-test-extension.tar.gz /usr/bin/
USER 1000:1000
ENV LC_ALL en_US.UTF-8
ENTRYPOINT ["/usr/bin/openstack-test"]