diff --git a/Dockerfile b/Dockerfile index d988461d..a128265d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,18 @@ FROM jenkins/jenkins:2.414.2-jdk11 + USER root -RUN apt-get update && apt-get install -y lsb-release python3-pip -RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ - https://download.docker.com/linux/debian/gpg -RUN echo "deb [arch=$(dpkg --print-architecture) \ - signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ - https://download.docker.com/linux/debian \ - $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list -RUN apt-get update && apt-get install -y docker-ce-cli + +RUN apt-get update && apt-get install -y \ + lsb-release python3-pip curl gnupg apt-transport-https ca-certificates && \ + curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ + https://download.docker.com/linux/debian/gpg && \ + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \ + https://download.docker.com/linux/debian $(lsb_release -cs) stable" \ + > /etc/apt/sources.list.d/docker.list && \ + apt-get update && apt-get install -y docker-ce-cli && \ + apt-get clean + USER jenkins -RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28" \ No newline at end of file + +COPY plugins.txt /usr/share/jenkins/ref/plugins.txt +RUN jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt diff --git a/plugins.txt b/plugins.txt new file mode 100644 index 00000000..e7009ed4 --- /dev/null +++ b/plugins.txt @@ -0,0 +1,2 @@ +blueocean:1.25.3 +docker-workflow:1.28