-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
72 lines (62 loc) · 2.1 KB
/
Taskfile.yml
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
# https://taskfile.dev
version: '3'
tasks:
run:
desc: Start nsq services with the default configuration.
vars:
DOCKERFILE: '{{default "./with_graphite/docker-compose.yml" .DOCKERFILE}}'
cmds:
- docker compose -f {{.DOCKERFILE}} up -d
stop:
desc: Stop nsq services with the default configuration.
vars:
DOCKERFILE: '{{default "./with_graphite/docker-compose.yml" .DOCKERFILE}}'
cmds:
- docker compose -f {{.DOCKERFILE}} down
basic:run:
desc: Start nsq services with the basic configuration.
summary: |
Configuration includes a nsqlookupd, nsqadmin, and a single nsqd. Graphs
are not enabled within nsqadmin.
cmds:
- task: run
vars: { DOCKERFILE: './basic/docker-compose.yml' }
basic:stop:
desc: Stop nsq services with the basic configuration.
cmds:
- task: stop
vars: { DOCKERFILE: './basic/docker-compose.yml' }
with_graphite:run:
desc: Start nsq services with nsqadmin graphs enabled.
summary: |
Configuration includes a graphite, statsd, nsqlookupd, nsqadmin, and a
single nsqd. Graphs in nsqadmin are generated by graphite.
cmds:
- task: run
vars: { DOCKERFILE: './with_graphite/docker-compose.yml' }
with_graphite:stop:
desc: Stop nsq services with nsqadmin graphs enabled.
cmds:
- task: stop
vars: { DOCKERFILE: './with_graphite/docker-compose.yml' }
multiple_nsqds:run:
desc: Start nsq services with nsqadmin graphs enabled.
summary: |
Configuration includes a graphite, statsd, nsqlookupd, nsqadmin, and a
single nsqd. Graphs in nsqadmin are generated by graphite.
cmds:
- task: run
vars: { DOCKERFILE: './multiple_nsqds/docker-compose.yml' }
multiple_nsqds:stop:
desc: Stop nsq services with nsqadmin graphs enabled.
cmds:
- task: stop
vars: { DOCKERFILE: './multiple_nsqds/docker-compose.yml' }
simulation:
cmds:
- |-
benthos \
-config ./simulation/config.yml \
streams \
simulation/producer_*.yml \
simulation/consumer_*.yml