-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsDockerfile
15 lines (14 loc) · 971 Bytes
/
JenkinsDockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM jenkins/jenkins:2.277.4-lts-jdk11
USER root
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
RUN echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update && apt-get install -y docker-ce-cli
RUN curl -LO https://dl.k8s.io/release/v1.19.0/bin/linux/amd64/kubectl
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN curl -LO https://releases.hashicorp.com/terraform/0.15.3/terraform_0.15.3_linux_amd64.zip
RUN unzip terraform_0.15.3_linux_amd64.zip && mv ./terraform /usr/local/bin/
USER jenkins
RUN jenkins-plugin-cli --plugins "blueocean:1.24.6 docker-workflow:1.26"