-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 747 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 747 Bytes
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
ansible_playbook=ansible-playbook \
--extra-vars='@vars.yaml'
.PHONY: quit
quit:
[ -e ./circus.pid ] && circusctl --timeout 2 quit 2>/dev/null || true
rm -f ./circus.pid
.PHONY: deploy
deploy:
$(ansible_playbook) deploy.yaml
.PHONY: teardown
teardown: quit
$(ansible_playbook) teardown.yaml
rm -rf ./data
.PHONY: reset
reset: quit
$(ansible_playbook) stop-dbs.yaml
rm -rf ./data
.PHONY: build
build:
CGO_ENABLED=0 GOOS=linux go build \
-gcflags "all=-N -l" \
-o ./pgedge-control-plane \
$(shell pwd)/../server
.PHONY: fix-clocks
fix-clocks:
ansible --become -i ./inventory.yaml all -m command -a 'chronyc -a makestep'
.PHONY: run
run: quit build fix-clocks
LIMA_DIR=$(shell pwd) circusd --pidfile ./circus.pid ./circus.ini