diff options
author | Tom Willemse | 2020-12-27 17:05:58 -0800 |
---|---|---|
committer | Tom Willemse | 2020-12-27 17:12:46 -0800 |
commit | 4333a9ec65e92fa058df6399f37b9975f70594b1 (patch) | |
tree | 7456732cb01bf4e7c7f383d0f54fce342f9a66c9 | |
parent | c9d38e16cb736b9692a3e7726ea9f0c00702230e (diff) | |
download | blog-4333a9ec65e92fa058df6399f37b9975f70594b1.tar.gz blog-4333a9ec65e92fa058df6399f37b9975f70594b1.zip |
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.
-rw-r--r-- | Dockerfile | 14 | ||||
-rw-r--r-- | Jenkinsfile | 11 |
2 files changed, 25 insertions, 0 deletions
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 + } + } + } +} |