-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
73 lines (58 loc) · 1.73 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
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
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all: reticulum
reticulum: *.go
CGO_ENABLED=0 go build .
cluster: reticulum
python run_cluster.py
clean:
rm -f reticulum
clusterclean:
rm -rf test/uploads*
run: reticulum
./reticulum -config=test/config0.json
fmt:
go fmt *.go
install: reticulum
cp -f reticulum /usr/local/bin/reticulum
test: reticulum
go test .
coverage: reticulum
go test . -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
install_deps:
go get -u github.com/thraxil/resize
go get -u github.com/golang/groupcache
go get -u github.com/go-kit/kit/log
go get -u github.com/prometheus/client_golang/prometheus
go get -u github.com/thraxil/randwalk
# local dev helpers
stopall:
sudo systemctl stop reticulum-sata1
sudo systemctl stop reticulum-sata2
sudo systemctl stop reticulum-sata3
sudo systemctl stop reticulum-sata4
sudo systemctl stop reticulum-sata5
sudo systemctl stop reticulum-sata6
sudo systemctl stop reticulum-sata7
sudo systemctl stop reticulum-sata8
sudo systemctl stop reticulum-sata9
sudo systemctl stop reticulum-sata10
sudo systemctl stop reticulum-sata11
sudo systemctl stop reticulum-sata12
startall:
sudo systemctl start reticulum-sata1
sudo systemctl start reticulum-sata2
sudo systemctl start reticulum-sata3
sudo systemctl start reticulum-sata4
sudo systemctl start reticulum-sata5
sudo systemctl start reticulum-sata6
sudo systemctl start reticulum-sata7
sudo systemctl start reticulum-sata8
sudo systemctl start reticulum-sata9
sudo systemctl start reticulum-sata10
sudo systemctl start reticulum-sata11
sudo systemctl start reticulum-sata12
build:
docker build -t thraxil/reticulum .
push: build
docker push thraxil/reticulum