From e76a019af00185feffa4277ae4235ae1c8b97901 Mon Sep 17 00:00:00 2001 From: "xiaolei.zl" Date: Tue, 11 Jun 2024 09:47:28 +0000 Subject: [PATCH] install kubectl to get svc ip --- flex/interactive/docker/interactive-runtime.Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flex/interactive/docker/interactive-runtime.Dockerfile b/flex/interactive/docker/interactive-runtime.Dockerfile index 07dd9afbf661..759e86368fca 100644 --- a/flex/interactive/docker/interactive-runtime.Dockerfile +++ b/flex/interactive/docker/interactive-runtime.Dockerfile @@ -62,6 +62,12 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get -y install sudo locales g++ cmake openjdk-11-jre-headless vim iputils-ping curl && \ locale-gen en_US.UTF-8 && apt-get clean -y && rm -rf /var/lib/apt/lists/* +RUN cd /tmp && export KUBE_VER=v1.19.2 && \ + curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBE_VER}/bin/linux/amd64/kubectl && \ + chmod +x ./kubectl && \ + cd /tmp && \ + mv ./kubectl /usr/local/bin/kubectl + # python3 RUN if [ "${ENABLE_COORDINATOR}" = "true" ]; then \ apt-get update && apt-get -y install python3 python3-pip && \