-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
43 lines (36 loc) · 1.47 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
docker:
@docker-compose down
@docker-compose -f "docker-compose.yml" up --build --remove-orphans --force-recreate --exit-code-from consumer
dockerdown:
@docker-compose down
lint:
@golangci-lint run
build:
@echo "---- Building Agent from cmd/bspagent ----"
@go build -o ./bin/bspagent ./cmd/bspagent/
@echo "---- Done Building to ./bin/bspagent ----"
run-agent-eth:
@echo "---- Running Agent from cmd/bspagent ----"
@go run ./cmd/bspagent/*.go \
--redis-url="redis://username:@localhost:6379/0?topic=replication-2#replicate-1" \
--avro-codec-path="./codec/block-ethereum.avsc" \
--binary-file-path="./bin/block-ethereum/" \
--block-divisor=3 \
--proof-chain-address="0x8243AF52B91649547DC80814670Dd1683F360E4c" \
--consumer-timeout=10000000 \
--log-folder ./logs/ \
--ipfs-pinner-server="http://127.0.0.1:3000/"
run-agent-elrond:
@echo "---- Running Agent from cmd/bspagent ----"
@go run ./cmd/bspagent/*.go \
--redis-url="redis://username:@localhost:6379/0?topic=replication#replicate" \
--avro-codec-path="./codec/block-elrond.avsc" \
--binary-file-path="./bin/block-elrond/" \
--proof-chain-address=0xbFCa723A2661350f86f397CEdF807D6e596d7874 \
--websocket-urls="34.69.250.147:20000 34.69.250.147:20001 34.69.250.147:20002 34.69.250.147:20003" \
--consumer-timeout=8000 \
--ipfs-pinner-server="http://127.0.0.1:3000/"
test:
@echo "---- Testing Agent from cmd/bspagent ----"
@go test ./... -coverprofile=coverage.out
@echo "---- Done Testing for cmd/bspagent ----"