diff --git a/jenkins-agent/Dockerfile b/jenkins-agent/Dockerfile index f038685..91236d5 100644 --- a/jenkins-agent/Dockerfile +++ b/jenkins-agent/Dockerfile @@ -20,6 +20,17 @@ RUN apt-get install -y \ wget \ curl +# Kubernetes client +RUN apt-get install -y apt-transport-https ca-certificates curl gnupg \ + && curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.26/deb/Release.key \ + | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \ + && chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg \ + && echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.26/deb/ /' \ + | tee /etc/apt/sources.list.d/kubernetes.list \ + && chmod 644 /etc/apt/sources.list.d/kubernetes.list \ + && apt-get update \ + && apt-get install -y kubectl + # Docker compose RUN curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` \ -o /usr/local/bin/docker-compose \