Add a simple Makefile
This commit is contained in:
parent
c413ab41c2
commit
495fbaab6a
1 changed files with 29 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
.PHONY: all build up update down start-db status logs
|
||||||
|
|
||||||
|
all:
|
||||||
|
go test -v ./...
|
||||||
|
|
||||||
|
.env: example.env
|
||||||
|
@cp example.env .env
|
||||||
|
@echo "Please edit .env to suit your environment before proceeding"
|
||||||
|
|
||||||
|
build: .env
|
||||||
|
@docker compose build
|
||||||
|
|
||||||
|
up: .env
|
||||||
|
@docker compose up -d --build
|
||||||
|
|
||||||
|
update: up
|
||||||
|
|
||||||
|
down:
|
||||||
|
@docker compose down
|
||||||
|
|
||||||
|
start-db:
|
||||||
|
@docker compose up -d postgres
|
||||||
|
|
||||||
|
status:
|
||||||
|
@docker compose stats
|
||||||
|
|
||||||
|
logs:
|
||||||
|
@docker compose logs -f -n 50 lister consumer record-indexer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue