-
Notifications
You must be signed in to change notification settings - Fork 361
/
Copy pathDockerfile.e2e
24 lines (17 loc) · 995 Bytes
/
Dockerfile.e2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.23-openshift-4.19 AS builder
WORKDIR /hypershift
COPY . .
RUN make e2e
# 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.23-openshift-4.19
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-setup /hypershift//bin/test-setup
COPY --from=builder /hypershift/hack/ci-test-e2e.sh /hypershift/hack/ci-test-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