From 12f514f752846c28c36cdc08c2a95b5ff1a0664f Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Fri, 11 Sep 2020 14:48:14 +0200 Subject: [PATCH] Update dockerfile for v1.19.1 (#6668) --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd3eec5a6..86c13cba0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ -FROM ubuntu:18.04 +# Use imutable image tags rather than mutable tags (like ubuntu:18.04) +FROM ubuntu:bionic-20200807 + +ENV KUBE_VERSION=v1.19.1 RUN mkdir /kubespray WORKDIR /kubespray @@ -14,7 +17,8 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \ && apt update -y && apt-get install docker-ce -y COPY . . RUN /usr/bin/python3 -m pip install pip -U && /usr/bin/python3 -m pip install -r tests/requirements.txt && python3 -m pip install -r requirements.txt && update-alternatives --install /usr/bin/python python /usr/bin/python3 1 -RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.5/bin/linux/amd64/kubectl \ + +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl \ && chmod a+x kubectl && cp kubectl /usr/local/bin/kubectl # Some tools like yamllint need this