1
0
Fork 0
mirror of https://github.com/Luzifer/github-masswatch.git synced 2024-12-22 19:11:17 +00:00

Merge pull request #1 from denderello/docker-support

Add Docker support
This commit is contained in:
Knut Ahlers 2016-05-04 16:54:20 +02:00
commit e0cda31960
3 changed files with 12 additions and 1 deletions

3
Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM ruby:2.1.9-onbuild
ENTRYPOINT ["./watch.rb"]

View file

@ -1,5 +1,5 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '2.1.6' ruby '2.1.9'
gem "octokit", "~> 3.0" gem "octokit", "~> 3.0"
gem 'thor', '0.19.1' gem 'thor', '0.19.1'

View file

@ -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. 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]
```