-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
49 lines (46 loc) · 1.12 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
# https://taskfile.dev
version: '3'
vars:
tasks:
run:
deps: [build]
cmds:
- docker run -v raftlogs:/var/logs raft ./run.py {{.CLI_ARGS}}
test:
deps: [build]
cmds:
- docker run raft cargo test
check:
cmds:
- cargo check --target=x86_64-unknown-linux-musl
all:
cmds:
- task: build:debug
- task: publish
build:debug:
cmds:
- cargo build --target=x86_64-unknown-linux-musl
- mv target/x86_64-unknown-linux-musl/debug/raft 3700kvstore
silent: true
build:release:
cmds:
- cargo build --release --target=x86_64-unknown-linux-musl
- mv target/x86_64-unknown-linux-musl/release/raft 3700kvstore
silent: true
clean:
cmds:
- cargo clean
- rm 3700kvstore
publish:
cmds:
- scp 3700kvstore [email protected]:~/networks/raft
build:
- docker build -t raft:latest .
view-logs:
cmds:
- docker run -v raftlogs:/var/logs raft cat /var/logs/{{.CLI_ARGS}} | bat
interactive: true
view-all-logs:
cmds:
- docker run -v raftlogs:/var/logs raft cat /var/logs/* | bat
interactive: true