forked from jitsi/rtcstats-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (41 loc) · 809 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
REGISTRY:=jitsi-dev
IMAGE:=rtcstats-server
REPOSITORY:=$(REGISTRY)/$(IMAGE)
TAG:=latest
build:
@docker build -t $(REPOSITORY) .
run:
@docker run \
-p 3000:3000 \
-p 8095:8095 \
$(REPOSITORY):$(TAG)
test:
@docker run \
-p 3000:3000 \
-p 8095:8095 \
-v $(PWD):/rtcstats-server \
--env RTCSTATS_LOG_LEVEL=debug \
--entrypoint npm \
--cpus=2 \
$(REPOSITORY):$(TAG) \
run test
debug-restricted:
@docker run \
-p 3000:3000 \
-p 8095:8095 \
--env RTCSTATS_LOG_LEVEL=info \
--entrypoint npm \
--cpuset-cpus=0 \
$(REPOSITORY):$(TAG) \
run debug
debug:
@docker run \
-p 3000:3000 \
-p 8095:8095 \
-v $(PWD):/rtcstats-server \
--entrypoint npm \
$(REPOSITORY):$(TAG) \
run watch:dev
push: build
@echo "Push not configured."
#@docker push $(REGISTRY)/$(IMAGE)