-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
114 lines (87 loc) · 1.39 KB
/
Justfile
File metadata and controls
114 lines (87 loc) · 1.39 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
set shell := ["bash", "-uc"]
alias b := build
alias r := run
alias rd := run-dev
alias t := test
alias ts := test-short
alias tb := bench
alias l := lint
alias f := fmt
alias fc := fmt-check
alias c := ci
alias k := docker-stop
default:
@just help
help:
@make help
build:
@make build
run:
@make run
run-dev:
@make run-dev
test:
@make test
test-short:
@make test-short
bench:
@make bench
lint:
@make lint
fmt:
@make fmt
fmt-check:
@make fmt-check
tidy:
@make tidy
vet:
@make vet
ci:
@make ci
clean:
@make clean
clean-all:
@make clean-all
docker-build:
@make docker-build
docker-run:
@make docker-run
docker-stop:
@make docker-stop
docker-shell:
@make docker-shell
bootstrap \
host="127.0.0.1" \
port="6379" \
node="node-1" \
raft="127.0.0.1:7000" \
http="127.0.0.1:17000":
@make bootstrap \
BOOTSTRAP_HOST={{host}} \
BOOTSTRAP_PORT={{port}} \
BOOTSTRAP_NODE={{node}} \
BOOTSTRAP_RAFT={{raft}} \
BOOTSTRAP_HTTP={{http}}
join \
node \
port \
raft \
http \
leader:
@make join \
JOIN_NODE={{node}} \
JOIN_PORT={{port}} \
JOIN_RAFT={{raft}} \
JOIN_HTTP={{http}} \
JOIN_TARGET={{leader}}
rejoin node host port raft http:
@make rejoin \
REJOIN_NODE={{node}} \
REJOIN_PORT={{port}} \
REJOIN_RAFT={{raft}} \
REJOIN_HTTP={{http}} \
REJOIN_HOST={{host}}
cluster-up:
@make cluster-up
cluster-down:
@make cluster-down