icinga2-container/Makefile
2016-05-01 11:08:23 +02:00

24 lines
526 B
Makefile

all: build
V ?= 1
IMAGE = registry.eu-gb.bluemix.net/mic92/monitoring:$(V)
build:
docker build -t $(IMAGE) .
run: build
docker run --rm -ti \
-v influxdb-data:/var/lib/influxdb/data \
-v influxdb-meta:/var/lib/influxdb/meta \
-v postgresql:/var/lib/postgresql \
-v grafana-lib:/var/lib/grafana \
-v grafana-etc:/etc/grafana \
-v icinga2-etc:/etc/icinga2 \
-v icinga2-lib:/var/lib/icinga2 \
-v icingaweb2-etc:/etc/icingaweb2 \
-v ssmtp-etc:/etc/ssmtp \
$(IMAGE) sh
upload: build
docker push $(IMAGE)