Skip to content

Commit 86f6e66

Browse files
committed
Updated Dockerfile fix
1 parent 9aa7e89 commit 86f6e66

File tree

1 file changed

+4
-4
lines changed
  • cloudbank/terraform/jenkins-module/scripts

1 file changed

+4
-4
lines changed

cloudbank/terraform/jenkins-module/scripts/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM jenkins/jenkins:lts-jdk11
44
USER root
55

66
# install sudo and curl and setup apt for https sources as well as kubernetes dependencies
7-
RUN apt-get update && apt-get install -qq -y sudo apt-transport-https ca-certificates curl
7+
RUN apt-get update && apt-get install -qq -y sudo ca-certificates curl
88

99

1010
#install docker
@@ -14,13 +14,13 @@ RUN apt-get update && apt-get install -qq -y docker.io
1414
RUN apt-get update && apt-get install -qq -y git
1515

1616
# setup repository for kubectl install
17-
RUN curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg && \
18-
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
17+
RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \
18+
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
1919

2020
# install kubectl
2121
RUN sudo apt-get update && sudo apt-get install -y kubectl
2222

2323
# install plugins
2424
RUN jenkins-plugin-cli --plugins blueocean docker-workflow matrix-auth git workflow-aggregator credentials-binding configuration-as-code kubernetes-cli generic-webhook-trigger multibranch-scan-webhook-trigger
2525

26-
USER jenkins
26+
USER jenkins

0 commit comments

Comments
 (0)