inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
397 stars 183 forks source link

Add Dockerfile for building with golang-builder #12

Closed rutsky closed 7 years ago

rutsky commented 7 years ago

With these changes I managed to build prometheus_bot image using following golang-builder:

sudo docker run --rm \
    -v "$(pwd):/src" \
    -v /var/run/docker.sock:/var/run/docker.sock \
    centurylink/golang-builder rutsky/prometheus_bot:0.0.4

where last part (rutsky/prometheus_bot:0.0.4) is image name to use for storing in local Docker instance. I pushed this image to Docker Hub here: https://hub.docker.com/r/rutsky/prometheus_bot/, and use it with docker pull rutsky/prometheus_bot:0.0.4.

This is not best setup that might be (best --- is autobuilding from tag on Github and publishing to Docker Hub), but it worked for me.

Related to #10.

hryamzik commented 7 years ago

Not sure why initial tests failed, restarted them and they are green now. Thanks!