mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
Add a few targets to Makefile
This commit is contained in:
parent
8b0f432ffb
commit
74e7bdae8c
1 changed files with 30 additions and 7 deletions
37
Makefile
37
Makefile
|
@ -1,14 +1,37 @@
|
||||||
|
BINARY=gatus
|
||||||
|
|
||||||
|
install:
|
||||||
|
go build -mod vendor -o $(BINARY) .
|
||||||
|
|
||||||
|
run:
|
||||||
|
GATUS_CONFIG_FILE=./config.yaml ./$(BINARY)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm $(BINARY)
|
||||||
|
|
||||||
|
test:
|
||||||
|
sudo go test ./alerting/... ./client/... ./config/... ./controller/... ./core/... ./jsonpath/... ./pattern/... ./security/... ./storage/... ./util/... ./watchdog/... -cover
|
||||||
|
|
||||||
|
|
||||||
|
##########
|
||||||
|
# Docker #
|
||||||
|
##########
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build -t twinproduction/gatus:latest .
|
docker build -t twinproduction/gatus:latest .
|
||||||
|
|
||||||
docker-build-and-run:
|
docker-run:
|
||||||
docker build -t twinproduction/gatus:latest . && docker run -p 8080:8080 --name gatus twinproduction/gatus:latest
|
docker run -p 8080:8080 --name gatus twinproduction/gatus:latest
|
||||||
|
|
||||||
build-frontend:
|
docker-build-and-run: docker-build docker-run
|
||||||
|
|
||||||
|
|
||||||
|
#############
|
||||||
|
# Front end #
|
||||||
|
#############
|
||||||
|
|
||||||
|
frontend-build:
|
||||||
npm --prefix web/app run build
|
npm --prefix web/app run build
|
||||||
|
|
||||||
run-frontend:
|
frontend-run:
|
||||||
npm --prefix web/app run serve
|
npm --prefix web/app run serve
|
||||||
|
|
||||||
test:
|
|
||||||
go test ./alerting/... ./client/... ./config/... ./controller/... ./core/... ./jsonpath/... ./pattern/... ./security/... ./storage/... ./util/... ./watchdog/... -cover
|
|
Loading…
Reference in a new issue