-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 1019 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 1019 Bytes
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
FROM ubuntu AS dind-ubuntu
RUN apt-get update \
&& apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
# Install Docker cli
ENV DOCKERVERSION=18.03.1-ce
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 \
-C /usr/local/bin docker/docker \
&& rm docker-${DOCKERVERSION}.tgz
FROM dind-ubuntu
WORKDIR /app
# install kubectl
RUN KUBE_LATEST_VERSION=`curl https://storage.googleapis.com/kubernetes-release/release/stable.txt` \
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBE_LATEST_VERSION/bin/linux/amd64/kubectl \
&& mv kubectl /usr/local/bin/ \
&& chmod +x /usr/local/bin/kubectl
# download kind in builder
RUN curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.8.1/kind-$(uname)-amd64 && \
chmod +x ./kind && \
mv ./kind /usr/local/bin/
ADD kind /app/
ENTRYPOINT ["./create-kind.sh" ]