forked from kubernetes-client/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM docker:stable
# install git, bash, kind, kubectl and clone the kubernetes-client/gen code base
RUN apk add --no-cache git bash && \
wget -O /usr/bin/kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 && \
chmod +x /usr/bin/kind && \
wget -O /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/linux/amd64/kubectl && \
chmod +x /usr/bin/kubectl && \
git clone https://github.com/kubernetes-client/gen.git && \
cd gen && \
git checkout 729332ad08f0f4d98983b7beb027e2f657236ef9
# 729332ad08f0f4d98983b7beb027e2f657236ef9 is the last commit using python2 interpreter
COPY Dockerfile.gen gen/openapi/openapi-generator/Dockerfile
COPY generate.sh generate.sh
RUN chmod +x generate.sh
WORKDIR gen/openapi
CMD ["/generate.sh"]