Sign inSign up

krezz/prometheus_bot

By krezz

•Updated almost 8 years ago

Docker build of project: https://github.com/inCaller/prometheus_bot

Image
0

9.4K

krezz/prometheus_bot repository overview

⁠Start docker container:
docker run --rm -v ./config:/config krezz/prometheus_bot:latest -c /config/config.yml
⁠Available commands:
-c [string],   Path to a config file (default "config.yaml")
-d,            Debug template
-l [string],   Listen address (default ":9087")
-t [string],   Path to a template file
⁠Dockerfile content
FROM golang:alpine
RUN apk add git --no-cache &&\
    go get github.com/inCaller/prometheus_bot &&\
    go install github.com/inCaller/prometheus_bot &&\
    apk del git --no-cache &&\
    rm -rf /go/src/*
EXPOSE 9087
ENTRYPOINT ["/go/bin/prometheus_bot"]
CMD ["--help"]
⁠Docker-compose example
version: '3'
services:
  prometheus_bot:
    image: krezz/prometheus_bot:latest
    volumes:
      - ./config:/config
    ports:
      - 9087:9087
    command: ["-c", "/config/config.yml", "-t", "/config/default.tmpl"]

Tag summary

Content type

Image

Digest

Size

117.8 MB

Last updated

almost 8 years ago

docker pull krezz/prometheus_bot