forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 108
/
Dockerfile.rhel
22 lines (21 loc) · 1.22 KB
/
Dockerfile.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/k8s.io/kubernetes
COPY . .
RUN make WHAT=openshift-hack/e2e/k8s-e2e.test; \
make WHAT=vendor/github.com/onsi/ginkgo/v2/ginkgo; \
mkdir -p /tmp/build; \
cp /go/src/k8s.io/kubernetes/_output/local/bin/linux/$(go env GOARCH)/k8s-e2e.test /tmp/build/; \
cp /go/src/k8s.io/kubernetes/_output/local/bin/linux/$(go env GOARCH)/ginkgo /tmp/build/; \
cp /go/src/k8s.io/kubernetes/openshift-hack/test-kubernetes-e2e.sh /tmp/build/; \
cp /go/src/k8s.io/kubernetes/openshift-hack/images/kube-proxy/test-kube-proxy.sh /tmp/build/
FROM registry.ci.openshift.org/ocp/4.18:tools
COPY --from=builder /tmp/build/k8s-e2e.test /usr/bin/
COPY --from=builder /tmp/build/ginkgo /usr/bin/
COPY --from=builder /tmp/build/test-kubernetes-e2e.sh /usr/bin/
COPY --from=builder /tmp/build/test-kube-proxy.sh /usr/bin/
RUN yum install --setopt=tsflags=nodocs -y git gzip util-linux && yum clean all && rm -rf /var/cache/yum/* && \
git config --system user.name test && \
git config --system user.email [email protected] && \
chmod g+w /etc/passwd
LABEL io.k8s.display-name="Kubernetes End-to-End Tests" \
io.openshift.tags="k8s,tests,e2e"