From c050a52821ceffefc6cb8e890f1e8148f0f06be1 Mon Sep 17 00:00:00 2001 From: Erki Date: Sun, 23 Jan 2022 15:28:20 +0200 Subject: [PATCH] Add a jenkins image --- .drone.yml | 10 +++++++++- jenkins-ubuntu.Dockerfile | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 jenkins-ubuntu.Dockerfile diff --git a/.drone.yml b/.drone.yml index 05d7374..f928f8b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,14 @@ steps: - name: docker_socket path: /var/run/docker.sock + - name: build jenkins-ubuntu + image: docker + commands: + - docker build -t erki/jenkins-ubuntu:latest - < jenkins-ubuntu.Dockerfile + volumes: + - name: docker_socket + path: /var/run/docker.sock + - name: notify image: plugins/matrix settings: @@ -25,7 +33,7 @@ steps: when: status: - failure - + volumes: - name: docker_socket host: diff --git a/jenkins-ubuntu.Dockerfile b/jenkins-ubuntu.Dockerfile new file mode 100644 index 0000000..5711b88 --- /dev/null +++ b/jenkins-ubuntu.Dockerfile @@ -0,0 +1,6 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update -y +RUN apt-get install -y --no-install-recommends git build-essential cmake ninja-build python3 python3-pip default-jre