mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Merge pull request #72 from cloudflare/run-docker-mock
Fix mock data usage with 'make run-docker'
This commit is contained in:
12
Makefile
12
Makefile
@@ -2,7 +2,8 @@ NAME := unsee
|
||||
VERSION := $(shell git describe --tags --always --dirty='-dev')
|
||||
|
||||
# Alertmanager instance used when running locally, points to mock data
|
||||
ALERTMANAGER_URI := file://$(CURDIR)/mock/0.5
|
||||
MOCK_PATH := $(CURDIR)/mock/0.5
|
||||
ALERTMANAGER_URI := file://$(MOCK_PATH)
|
||||
# Listen port when running locally
|
||||
PORT := 8080
|
||||
|
||||
@@ -61,11 +62,12 @@ run-docker: docker-image
|
||||
@docker rm -f $(NAME) || true
|
||||
docker run \
|
||||
--name $(NAME) \
|
||||
$(DOCKER_ARGS) \
|
||||
$(DOCKER_ARGS) \
|
||||
-v $(MOCK_PATH):$(MOCK_PATH) \
|
||||
-e ALERTMANAGER_URI=$(ALERTMANAGER_URI) \
|
||||
-e COLOR_LABELS_UNIQUE="instance cluster" \
|
||||
-e COLOR_LABELS_STATIC="job" \
|
||||
-e DEBUG="$(GIN_DEBUG)" \
|
||||
-e COLOR_LABELS_UNIQUE="instance cluster" \
|
||||
-e COLOR_LABELS_STATIC="job" \
|
||||
-e DEBUG="$(GIN_DEBUG)" \
|
||||
-e PORT=$(PORT) \
|
||||
-p $(PORT):$(PORT) \
|
||||
$(NAME):$(VERSION)
|
||||
|
||||
Reference in New Issue
Block a user