From 688298d8b691b63791b5a99b9863cc69acb87532 Mon Sep 17 00:00:00 2001 From: CANLERS Julien <julien.canlers8@etu.univ-lorraine.fr> Date: Tue, 16 Mar 2021 13:59:06 +0000 Subject: [PATCH] Add new file --- DockerfileJenkins | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 DockerfileJenkins diff --git a/DockerfileJenkins b/DockerfileJenkins new file mode 100644 index 0000000..a78dce7 --- /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 -- GitLab