From 78d6290a65b9ac38a5891f059828f8078dd987fe Mon Sep 17 00:00:00 2001 From: Edward Oakes Date: Mon, 6 Jan 2020 17:30:51 -0600 Subject: [PATCH] Add kubectl to autoscaler docker image (#6721) --- docker/autoscaler/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker/autoscaler/Dockerfile b/docker/autoscaler/Dockerfile index 290035295..8d7fe6e99 100644 --- a/docker/autoscaler/Dockerfile +++ b/docker/autoscaler/Dockerfile @@ -3,7 +3,14 @@ ARG WHEEL_PATH ARG WHEEL_NAME RUN apt update -RUN apt install -y curl tmux screen rsync +RUN apt install -y curl tmux screen rsync apt-transport-https + +# Install kubectl. +RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - +RUN touch /etc/apt/sources.list.d/kubernetes.list +RUN echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list +RUN apt update +RUN apt install -y kubectl # We have to uninstall wrapt this way for Tensorflow compatibility RUN conda remove -y wrapt