https://github.com/nakasar/docker-bot
Managing docker via a rocket bot.
https://github.com/nakasar/docker-bot
bot docker management rocketchat
Last synced: 2 months ago
JSON representation
Managing docker via a rocket bot.
- Host: GitHub
- URL: https://github.com/nakasar/docker-bot
- Owner: Nakasar
- Created: 2018-03-19T12:33:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T13:33:18.000Z (about 8 years ago)
- Last Synced: 2025-03-28T17:28:02.942Z (over 1 year ago)
- Topics: bot, docker, management, rocketchat
- Language: Python
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-bot
> Managing docker via a rocket bot.
The Current version starts a rocketchat server, the bot itself with [Hubot](https://hubot.github.com/docs/), and a python API which interacts with Docket API. You may use only the dockerbot python API to plug in any other chat bot (for discord, or whatever).
## Install & Deploy
- Make sure you have [docker](https://docs.docker.com/install/) and [docker-compose](https://docs.docker.com/compose/install/) available on the host machine.
- Clone this repo `git clone https://github.com/Nakasar/docker-bot`.
- Move into the cloned repo directory `cd docker-bot`.
- Build and run the docker-compose file with `docker-compose up`.
- You're up to go !
> If you install docker-bot on a Virtual Machine, make sure to redirect port 3000 for rocketchat to work.
## Demo
- Access the rocketchat app at `127.0.0.1:3000` with any decent browser.
- Create a new accout named `dockerbot` with a fake email, password should be `dockerbot` and sign in.
- Log out.
- Create another account for you and sign in.
- Type `!docker help` to get started.
## Docs
### Imports
To import dockerbot and the desired systems :
```python
import dockerbot..
```
#### Systems
| Module | System | Description |
|--------|------------|----------------------------------------------------------------------|
| infos | | |
| | containers | List containers, get container status... |
| | images | List images on machine... |
| logs | | |
| | containers | Logs all containers, errors, hook to error detection, search logs... |
| admin | | |
| | images | Pull, build and run images. |
| | containers | Pause, start, stop and remove containers. |
### Dependancies
- dockerbot runs a REST API with [Flask](http://flask.pocoo.org/).