diff --git a/DockerfileJenkins b/DockerfileJenkins new file mode 100644 index 0000000000000000000000000000000000000000..a78dce73ee2eeed76985e3744c9417fb4b9998f9 --- /dev/null +++ b/DockerfileJenkins @@ -0,0 +1,15 @@ +FROM jenkins/jenkins:2.263.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 | apt-key add - +RUN apt-key fingerprint 0EBFCD88 +RUN add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/debian \ + $(lsb_release -cs) stable" +RUN VERSION=$(curl --silent "https://api.github.com/repos/goodwithtech/dockle/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && curl -L -o dockle.deb https://github.com/goodwithtech/dockle/releases/download/v${VERSION}/dockle_${VERSION}_Linux-64bit.deb +RUN dpkg -i dockle.deb && rm dockle.deb +RUN apt-get update && apt-get install -y wget docker-ce-cli +USER jenkins +RUN jenkins-plugin-cli --plugins blueocean:1.24.4 \ No newline at end of file