icinga2-container/Makefile

24 lines
526 B
Makefile
Raw Permalink Normal View History

2016-04-30 23:20:43 +00:00
all: build
2016-04-29 19:07:22 +00:00
2016-05-01 09:08:23 +00:00
V ?= 1
IMAGE = registry.eu-gb.bluemix.net/mic92/monitoring:$(V)
2016-04-29 19:07:22 +00:00
build:
2016-05-01 09:08:23 +00:00
docker build -t $(IMAGE) .
2016-04-29 19:07:22 +00:00
run: build
2016-04-30 23:20:43 +00:00
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 \
2016-05-01 09:08:23 +00:00
$(IMAGE) sh
upload: build
docker push $(IMAGE)