Ruboty::Docker
Management Docker via Ruboty ChatOps.
This plugin is Experimental!
I wrote ruby gem this is the first time.
This Gem is learning ruby for me.
Installation
Add this line to your application's Gemfile:
gem 'ruboty-docker'
And then execute:
$ bundle
And, launch ruboty:
$ docker run -v /var/run/docker.sock:/var/run/docker.sock your/rubotyimage
Tips
This plugin recommend to Ruboty on Docker container.
and, set
-v /var/run/docker.sock:/var/run/docker.sock
That way, DOCKER_HOST
environment is set automatically unix:///var/run/docker.sock
.
If do not use Docker container, please set Docker IP on RUBOTY_DOCKER_HOST
environment.
and, set RUBOTY_DOCKER_CERT_PATH
.
e.g.
RUBOTY_DOCKER_HOST=tcp://192.168.252.141:2376
RUBOTY_DOCKER_CERT_PATH=/Users/zchee/.docker/machine/machines/vmware-system
Usage
@ruboty docker run ....
@ruboty docker images
@ruboty docker ps
and more...
Contributing
- Fork it ( https://github.com/zchee/ruboty-docker/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request