-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
37 lines (30 loc) · 1.03 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
all: cluster client donutctl example-readme
build:
test:
go test -race -v ./...
run-etcd:
sudo rm -rf /tmp/etcd-data.tmp && mkdir -p /tmp/etcd-data.tmp && \
docker rmi gcr.io/etcd-development/etcd:v3.3.11 || true && \
docker run \
-p 2379:2379 \
-p 2380:2380 \
--mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
gcr.io/etcd-development/etcd:v3.3.11 \
/usr/local/bin/etcd \
--name s1 \
--data-dir /etcd-data \
--listen-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://0.0.0.0:2379 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://0.0.0.0:2380 \
--initial-cluster s1=http://0.0.0.0:2380 \
--initial-cluster-token tkn \
--initial-cluster-state new
build-client:
go build github.com/dforsyth/donut/client
build-cluster:
go build github.com/dforsyth/donut/cluster
build-donutctl:
go build -o donutctl-bin github.com/dforsyth/donut/donutctl
build-example-readme:
go build -o example-readme github.com/dforsyth/donut/example/readme