forked from MTES-MCT/monitorfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (18 loc) · 837 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
INFRA_FOLDER="$(shell pwd)/infra/configurations/"
STATIC_FILE_PATH="$(shell pwd)/frontend/build"
.PHONY: run docker-build docker-tag docker-push check-clean-archi test
run-front:
cd frontend && npm start
run-back:
docker-compose up -d
cd backend && ./mvnw spring-boot:run -Dspring-boot.run.arguments="--spring.config.additional-location=$(INFRA_FOLDER)" -Dspring-boot.run.profiles="local"
docker-build:
docker build --no-cache -f infra/docker/DockerfileBuildApp . -t monitorfish-app:$(VERSION)
docker-tag:
docker tag monitorfish-app:$(VERSION) docker.pkg.github.com/mtes-mct/monitorfish/monitorfish-app:$(VERSION)
docker-push:
docker push docker.pkg.github.com/mtes-mct/monitorfish/monitorfish-app:$(VERSION)
check-clean-archi:
cd backend/tools && ./check-clean-architecture.sh
test: check-clean-archi
cd backend && ./mvnw test