-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (24 loc) · 1.09 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
#!make
default: build
.PHONY: init start-elastic-stack stop-elastic-stack build build-dynamodb-benchmarker build-dax-benchmarker run-dynamodb-benchmarker run-dax-benchmarker clean lint
init: build
@[[ -d ../docker-elk ]] || git clone https://github.com/deviantony/docker-elk.git ..
@cd ../docker-elk && docker compose up setup
@echo "Default login creds: username=elastic, password=changeme"
start-elastic-stack:
@cd ../docker-elk && docker compose up -d
stop-elastic-stack:
@cd ../docker-elk && docker compose down
build-dynamodb-benchmarker:
@cargo clean && rm -f dynamodb-benchmarker && cargo build --release && mv ./target/release/dynamodb-benchmarker .
build-dax-benchmarker:
@rm -f main && rm -f dax-benchmarker && go mod tidy && go build -o dax-benchmarker pkg/app/main.go
build: build-dynamodb-benchmarker build-dax-benchmarker
run-dynamodb-benchmarker:
@cargo run
run-dax-benchmarker:
@go run pkg/app/main.go
clean:
@cargo clean && rm -f main && rm -f dynamodb-benchmarker && rm -f dax-benchmarker && rm -rf cdk/cdk.out && rm -rf cdk/node_modules
lint:
@cargo clippy && golangci-lint run