-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 956 Bytes
/
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
.PHONY: help
## help: prints this help message
help:
@echo "Usage: \n"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
.PHONY: test
## test: runs tests and linters
test:
@golangci-lint run ./...
@go test -mod=vendor ./app/... -coverprofile cover.out
.PHONY: build
## build: builds application
build:
@cd app && go build -v -mod=vendor
.PHONY: image
## image: build docker image
image:
@docker build -t adobromilskiy/quake3-logcatcher .
.PHONY: api
## api: run docker container
api:
@docker run -v /var/run/docker.sock:/run/docker.sock --rm adobromilskiy/quake3-logcatcher:latest --dbconn="mongodb://mongodb:27017" --container="quake3-server" --path="/run/docker.sock" --socket
.PHONY: file
## file: parse qconsole.log file
file:
@docker run -v /Users/twist/projects/quake3-logcatcher/data/qconsole.log:/qconsole.log --rm adobromilskiy/quake3-logcatcher:latest --dbconn="mongodb://mongodb:27017" --path="/qconsole.log"