From 4333a9ec65e92fa058df6399f37b9975f70594b1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 27 Dec 2020 17:05:58 -0800 Subject: [PATCH] Add Dockerfile and Jenkinsfile This is the first step in improving my coleslaw builds. For this commit the only thing that it does is build the project into a staging directory. --- Dockerfile | 14 ++++++++++++++ Jenkinsfile | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 Jenkinsfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..40ba092 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:latest + +RUN apt-get update && apt-get upgrade -y && apt-get install -y curl jq rsync + +RUN curl -sL `curl -s https://api.github.com/repos/roswell/roswell/releases/latest \ + | jq -r '.assets | .[] | select(.name|test("deb$")) | .browser_download_url'` \ + --output roswell.deb \ + && apt install -y ./roswell.deb + +RUN ros install coleslaw-org/coleslaw && coleslaw --help +RUN curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash +RUN evm install emacs-27.1 && evm use emacs-27.1 + +ENV PATH="/root/.evm/bin:/root/.roswell/bin:$PATH" diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b04cbd4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +pipeline { + agent { dockerfile true } + + stages { + stage('Build') { + steps { + sh coleslaw + } + } + } +}