forked from alexklibisz/elastiknn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.cluster.yml
45 lines (38 loc) · 935 Bytes
/
Taskfile.cluster.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
version: '3'
tasks:
install-docker-compose:
desc: Install docker-compose using pip.
status:
- docker-compose --version
cmds:
- python3 -m pip install docker-compose
assemble:
cmds:
- "{{ .CMD_GRADLE }} assemble"
run:
desc: Run local docker-compose cluster.
dir: elastiknn-testing
deps:
- install-docker-compose
- stop
cmds:
- sudo sysctl -w vm.max_map_count=262144
- task: assemble
- docker-compose up --detach --build --force-recreate
- python3 cluster_ready.py
minio:run:
dir: elastiknn-testing
deps:
- install-docker-compose
cmds:
- docker-compose up -d minio
logs:
desc: Print logs from local docker-compose cluster.
dir: elastiknn-testing
cmds:
- docker-compose logs
stop:
desc: Stop local docker-compose cluster.
dir: elastiknn-testing
cmds:
- docker-compose down