-
Notifications
You must be signed in to change notification settings - Fork 125
/
Dockerfile
35 lines (26 loc) · 1.43 KB
/
Dockerfile
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
FROM quay.io/kubevirtci/golang:v20231115-51a244f as builder
RUN git clone https://github.com/kubernetes/test-infra.git && \
cd test-infra && \
git checkout 3815e13b727dd09738bf9bd7e8a06ab616cb0d62 && \
/usr/local/bin/runner.sh /bin/sh -ce 'go build -o /usr/local/bin/config-bootstrapper ./prow/cmd/config-bootstrapper/...' && \
config-bootstrapper --help && \
/usr/local/bin/runner.sh /bin/sh -ce 'go build -o /usr/local/bin/phony ./prow/cmd/phony' && \
phony --help && \
/usr/local/bin/runner.sh /bin/sh -ce 'go build -o /usr/local/bin/hmac ./prow/cmd/hmac' && \
hmac --help
FROM quay.io/kubevirtci/bootstrap:v20231115-51a244f
COPY --from=builder /usr/local/bin/config-bootstrapper /usr/local/bin/phony /usr/local/bin/hmac /usr/local/bin/
RUN curl -Lo ./kustomize.tar.gz https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.8.7/kustomize_v3.8.7_linux_amd64.tar.gz && \
tar -xvf kustomize.tar.gz && \
mv ./kustomize /usr/local/bin && \
rm kustomize.tar.gz
RUN curl -Lo ./yq https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 && \
chmod a+x ./yq && \
mv ./yq /usr/local/bin
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod a+x ./kubectl && \
mv ./kubectl /google-cloud-sdk/bin/ && \
kubectl version --client=true
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN dnf install -y which openssl