forked from stolostron/hypershift-addon-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.canary
35 lines (28 loc) · 1018 Bytes
/
Dockerfile.canary
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
ARG FOUNDATION_IMAGE_TAG=latest
FROM quay.io/stolostron/foundation-e2e:$FOUNDATION_IMAGE_TAG AS foundation-canary
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
# Install utils
RUN microdnf update -y \
&& microdnf install uuid \
&& microdnf install jq \
&& microdnf install openssh-clients \
&& microdnf install tar \
&& microdnf clean all
# Install the kubectl binary
RUN curl -LO https://dl.k8s.io/release/v1.26.0/bin/linux/amd64/kubectl \
&& chmod +x kubectl \
&& mv kubectl /bin
COPY ./test/canary/run_canary_test.sh .
COPY ./test/canary/hypershift-failed.xml .
COPY ./test/canary/hypershift-success.xml .
RUN mkdir -p /results
RUN mkdir -p /resources
COPY ./test/canary/resources /resources
# Uncomment below to test with upstream
#COPY ./test/canary/bin/hypershift /bin
#RUN chmod +x /bin/hypershift
# Copy foundation canary test binary
COPY --from=foundation-canary /work-e2e /
# run as root
USER root
ENTRYPOINT ["./run_canary_test.sh"]