forked from openshift/hypershift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.e2e
More file actions
29 lines (22 loc) · 1.39 KB
/
Dockerfile.e2e
File metadata and controls
29 lines (22 loc) · 1.39 KB
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
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.22 AS builder
WORKDIR /hypershift
COPY . .
RUN make e2e hypershift
# Reuse the same image as builder because we need go command in ci-test-e2e.sh
# Multi-stage build lets us drop the source code and build cache from the final image
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.22
WORKDIR /hypershift
RUN mkdir -p /hypershift/bin /hypershift/hack
COPY --from=builder /hypershift/bin/test-e2e /hypershift/bin/test-e2e
COPY --from=builder /hypershift/bin/test-e2e-v2 /hypershift/bin/test-e2e-v2
COPY --from=builder /hypershift/bin/test-backuprestore /hypershift/bin/test-backuprestore
COPY --from=builder /hypershift/bin/test-setup /hypershift/bin/test-setup
COPY --from=builder /hypershift/bin/test-reqserving /hypershift/bin/test-reqserving
COPY --from=builder /hypershift/bin/hypershift /hypershift/bin/hypershift
COPY --from=builder /hypershift/hack/ci-test-e2e.sh /hypershift/hack/ci-test-e2e.sh
COPY --from=builder /hypershift/hack/run-reqserving-e2e.sh /hypershift/hack/run-reqserving-e2e.sh
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
dnf install -y https://packages.microsoft.com/config/rhel/9/packages-microsoft-prod.rpm && \
mv /etc/yum.repos.d/microsoft-prod.repo /etc/yum.repos.art/ci/ && \
dnf install -y azure-cli && \
dnf clean all