-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (49 loc) · 1.49 KB
/
Makefile
File metadata and controls
63 lines (49 loc) · 1.49 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PROJECT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(abspath $(PROJECT_DIR)/build/automation/init.mk)
# ==============================================================================
project-config:
make docker-config
project-build: project-config
make service1-image
project-start:
make docker-compose-start YML=$(DOCKER_COMPOSE_YML)
project-stop:
make docker-compose-stop YML=$(DOCKER_COMPOSE_YML)
project-log:
make docker-compose-log YML=$(DOCKER_COMPOSE_YML)
# ==============================================================================
artefact-ui: build-ui
build-ui:
make docker-run-node \
DIR=application/ui \
CMD="yarn install"
artefact-service1: build-service1
cp -v \
$(APPLICATION_DIR)/service1/target/demo-*.jar \
$(DOCKER_DIR)/service1/assets/application/service1.jar
make docker-image NAME=service1
build-service1:
make docker-run-mvn \
DIR=application/service1 \
CMD="-Dmaven.test.skip=true clean package"
debug-service1:
make project-start 2> /dev/null ||:
docker rm --force service1 2> /dev/null ||:
make docker-run-mvn \
CONTAINER=service1 \
DIR=application/service1 \
CMD="spring-boot:run \
-Dspring-boot.run.jvmArguments=' \
-Xdebug \
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:9999 \
' \
" \
ARGS=" \
--env PROFILE='$(PROFILE)' \
\
--publish 8081:8080 \
--publish 9999:9999 \
"
make project-start
# ==============================================================================
.SILENT: