-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 1 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
GEN_COMPOSE := ./developments/docker-compose.gen.yml
COMPOSE := ./developments/docker-compose.yml
DOCKER_FILE := ./developments/Dockerfile
DOCKER_ALL := ./developments/docker-compose.all.yml
gen-contract:
docker compose -f ${GEN_COMPOSE} up generate_contract --build
gen-proto:
docker compose -f ${GEN_COMPOSE} up generate_proto
gen-mock:
docker compose -f ${GEN_COMPOSE} up generate_mock
compose:
docker compose -f ${COMPOSE} up -d --build
get-accounts:
docker compose -f ${COMPOSE} logs ganache
docker-build:
docker build -f ${DOCKER_FILE} -t openmyth/blockchain .
start-all:
docker compose -f ${DOCKER_ALL} up -d --scale deploy_contract=0
deploy-contract:
docker compose -f ${DOCKER_ALL} up deploy_contract -d
# testing
test-publisher:
go run tests/kafka/publisher/main.go
test-subscriber:
go run tests/kafka/subscriber/main.go
test-mongo:
go run tests/mongo/main.go
test-ganache:
go run tests/ganache/main.go
unit-test:
go test ./...
start-blockchain-algorithm:
go run main.go blockchainAlgorithm