-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (57 loc) · 1.79 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PHONY: all clean jwt test varnishd live
.DEFAULT_GOAL := all
.SECONDARY:
COMPOSE=docker compose
COMPOSE_EXT_PARAMS=--force-recreate
all:
docker-compose up $(COMPOSE_EXT_PARAMS)
### Live
setup-1:
$(COMPOSE) -f docker-compose-live-watermarking-setup-1.yml up \
$(COMPOSE_EXT_PARAMS)
clean-setup-1:
$(COMPOSE) -f docker-compose-live-watermarking-setup-1.yml down \
--remove-orphans
setup-2:
$(COMPOSE) -f docker-compose-live-watermarking-setup-2.yml up \
$(COMPOSE_EXT_PARAMS)
restart-setup-2:
$(COMPOSE) -f docker-compose-live-watermarking-setup-2.yml restart \
-t 30 varnish-cache-proxy
clean-setup-2:
$(COMPOSE) -f docker-compose-live-watermarking-setup-2.yml down \
--remove-orphans
setup-v2:
$(COMPOSE) -f docker-compose-live-watermarking-setup-2-one-side-car.yml up \
$(COMPOSE_EXT_PARAMS)
restart-setup-v2:
$(COMPOSE) -f docker-compose-live-watermarking-setup-2-one-side-car.yml restart \
-t 30 varnish-cache-proxy
clean-setup-v2:
$(COMPOSE) -f docker-compose-live-watermarking-setup-2-one-side-car.yml down \
--remove-orphans
setup-3:
$(COMPOSE) -f docker-compose-live-watermarking-setup-3.yml up --build \
$(COMPOSE_EXT_PARAMS)
clean-setup-3:
$(COMPOSE) -f docker-compose-live-watermarking-setup-3.yml down \
--remove-orphans
setup-4:
$(COMPOSE) -f docker-compose-live-watermarking-setup-4.yml up \
$(COMPOSE_EXT_PARAMS)
clean-setup-4:
$(COMPOSE) -f docker-compose-live-watermarking-setup-4.yml down \
--remove-orphans
test: test-vod test-live
test-vod: jwt
sleetp 5
$(MAKE) -C test/side-car all
$(MAKE) -C test/wm-pattern all
$(MAKE) -C test/wm-token all
$(MAKE) clean-vod
test-live: wm-live
@echo Add sleep to make sure the containers are deployed. Also the \
availability_start_time=10
sleep 15
$(MAKE) -C test/live-side-car all
$(MAKE) clean-live