-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 820 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
32
33
34
# defaul shell
SHELL = /bin/bash
# Rule "help"
.PHONY: help
.SILENT: help
help:
echo "Use make [rule]"
echo "Rules:"
echo ""
echo "build-app - build application"
echo "build-image - build application and create docker image"
echo "services-up - run application on docker"
echo "services-down - stop application on docker"
echo ""
echo "check - check tools versions"
echo "help - show this message"
build-app:
./mvnw clean package -DskipTests; \
build-image:
./mvnw clean package -DskipTests; \
docker build --force-rm -t person-api-service:latest -f docker/Dockerfile .
services-up:
docker-compose -f docker/docker-compose.yaml -p person-api up
services-down:
docker-compose -f docker/docker-compose.yaml -p person-api down
check:
echo "make version " && make --version && echo