From a6c5ee306ff3852168c67b757b2cbc2f44636178 Mon Sep 17 00:00:00 2001 From: Dennis Benkert Date: Wed, 4 May 2016 16:42:05 +0200 Subject: [PATCH 1/3] update ruby version to 1.2.9 --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 93508ec..cc45987 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -ruby '2.1.6' +ruby '2.1.9' gem "octokit", "~> 3.0" gem 'thor', '0.19.1' From 4e765bb78102f883782f20944093931d3494a929 Mon Sep 17 00:00:00 2001 From: Dennis Benkert Date: Wed, 4 May 2016 16:42:26 +0200 Subject: [PATCH 2/3] Add Dockerfile with ruby onbuild support --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..92be2ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM ruby:2.1.9-onbuild + +ENTRYPOINT ["./watch.rb"] From 9124a59a01f5bac2c1faffd4197faaf7a8aaa11f Mon Sep 17 00:00:00 2001 From: Dennis Benkert Date: Wed, 4 May 2016 16:45:50 +0200 Subject: [PATCH 3/3] add Docker support documentation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 4bcc79c..73352bf 100644 --- a/README.md +++ b/README.md @@ -64,3 +64,11 @@ docker run --rm -v ${PWD}:/scripts ruby:2.1 bash /scripts/build.sh ``` For this you also let Jenkins clone this repository and then put that script into the build commands. The tool will now run in a ruby container which is disposed afterwards. + +## Docker support + +Besides using your local ruby installation you can also run the watch command in +a Docker container like this: +```bash +docker run --rm -it Luzifer/github-masswatch [COMMAND] +```