mirror of
https://github.com/Luzifer/github-masswatch.git
synced 2024-12-23 03:21:16 +00:00
Merge pull request #1 from denderello/docker-support
Add Docker support
This commit is contained in:
commit
e0cda31960
3 changed files with 12 additions and 1 deletions
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM ruby:2.1.9-onbuild
|
||||||
|
|
||||||
|
ENTRYPOINT ["./watch.rb"]
|
2
Gemfile
2
Gemfile
|
@ -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'
|
||||||
|
|
|
@ -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]
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue