forked from PureStorage-OpenConnect/pure-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.fb
30 lines (26 loc) · 1.12 KB
/
Makefile.fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
IMAGE_NAMESPACE = quay.io/purestorage
IMAGE_NAME = pure-fb-exporter
IMAGE_TAG ?= latest
EXPORTER ?= pure_fb_exporter
REQUIREMENTS ?= requirements.fb.txt
DOCKERFILE ?= Dockerfile.fb
RUN_PORT ?= 9491
TEST_PORT ?= 8123
TIMEO ?= 30
WORKERS ?= 2
default: build
.PHONY: build
build:
make IMAGE_NAMESPACE=$(IMAGE_NAMESPACE) IMAGE_NAME=$(IMAGE_NAME) \
IMAGE_TAG=$(IMAGE_TAG) REQUIREMENTS=$(REQUIREMENTS) DOCKERFILE=$(DOCKERFILE) \
RUN_PORT=$(RUN_PORT) TIMEO=$(TIMEO) WORKERS=$(WORKERS) EXPORTER=$(EXPORTER) -f Makefile.mk
.PHONY: test
test:
make IMAGE_NAMESPACE=$(IMAGE_NAMESPACE) IMAGE_NAME=$(IMAGE_NAME) \
IMAGE_TAG=$(IMAGE_TAG) REQUIREMENTS=$(REQUIREMENTS) DOCKERFILE=$(DOCKERFILE) \
RUN_PORT=$(RUN_PORT) TIMEO=$(TIMEO) WORKERS=$(WORKERS) EXPORTER=$(EXPORTER) -f Makefile.mk test
.PHONY: test-docker
test-docker: build
make IMAGE_NAMESPACE=$(IMAGE_NAMESPACE) IMAGE_NAME=$(IMAGE_NAME) \
IMAGE_TAG=$(IMAGE_TAG) REQUIREMENTS=$(REQUIREMENTS) DOCKERFILE=$(DOCKERFILE) \
RUN_PORT=$(RUN_PORT) TIMEO=$(TIMEO) WORKERS=$(WORKERS) -f Makefile.mk test-docker