-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 909 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 909 Bytes
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
# Talus Prototype Makefile
-include .env
export
.PHONY: up down migrate logs cuda build test
# up: start the database container
up:
docker compose -f deployments/docker-compose.yml --env-file .env up -d
# down: stop the database container
down:
docker compose -f deployments/docker-compose.yml down
# migrate: run golang-migrate against the database
migrate:
migrate -path ./db/migrations -database "postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@localhost:$(POSTGRES_PORT)/$(POSTGRES_DB)?sslmode=$(POSTGRES_SSLMODE)" up
# logs: tail the database container logs
logs:
docker compose -f deployments/docker-compose.yml logs -f
# cuda: builds CUDA terrain binary
cuda:
$(MAKE) -C cuda/terrain
build:
go build -o bin/ingestion ./cmd/ingestion/...
go build -o bin/terrain ./cmd/terrain/...
go build -o bin/hazard ./cmd/hazard/...
go build -o bin/gateway ./cmd/gateway/...
test:
go test ./...