-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.06 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
.DEFAULT_GOAL := build
build:
go build -o bin/bs-benchmark -ldflags "\
-X 'github.com/Nathan13888/bs-benchmark/v2/config.BuildVersion=$$(git rev-parse --abbrev-ref HEAD)' \
-X 'github.com/Nathan13888/bs-benchmark/v2/config.BuildUser=$$(id -u -n)' \
-X 'github.com/Nathan13888/bs-benchmark/v2/config.BuildTime=$$(date)' \
-X 'github.com/Nathan13888/bs-benchmark/v2/config.BuildGOOS=$$(go env GOOS)' \
-X 'github.com/Nathan13888/bs-benchmark/v2/config.BuildARCH=$$(go env GOARCH)' \
-s -w"
install:
# go install github.com/BattlesnakeOfficial/rules/cli/battlesnake@latest
dcu:
docker compose down
docker compose up -d
docker compose logs -f
dc-snakes:
docker compose down rng0 rng1 rng2 rng3
docker compose up rng0 rng1 rng2 rng3
dc-board:
docker compose down board
docker compose up board
demo:
docker compose down
docker compose up -d rng0 rng1 rng2 rng3
cat config.json
go run . "rng0" "http://127.0.0.1:8000" "rng1" "http://127.0.0.1:8001" "rng2", "http://127.0.0.1:8002" "rng3" "http://127.0.0.1:8003"
clean:
docker compose down
test:
go test -v ./...