-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 1.27 KB
/
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
TOP_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
PROJECT_NAME := deploymentboard
start-dev-server:
@cd ${TOP_DIR} && \
TOP_DIR=${TOP_DIR} cd ${TOP_DIR}/frontend/ && yarn run start
start-services:
@cd ${TOP_DIR} && \
TOP_DIR=${TOP_DIR} docker-compose -p ${PROJECT_NAME} -f ${TOP_DIR}/dev-env/docker-compose-services.yml up -d --build
stop-services:
@cd ${TOP_DIR} && \
TOP_DIR=${TOP_DIR} docker-compose -p ${PROJECT_NAME} -f ${TOP_DIR}/dev-env/docker-compose-services.yml -f ${TOP_DIR}/dev-env/docker-compose-deploymentboard.yml down --remove-orphans --volumes
build:
@cd ${TOP_DIR} && \
mvn clean install && \
docker load -i ${TOP_DIR}/webapp/target/jib-image.tar
start-deploymentboard:
@cd ${TOP_DIR} && \
TOP_DIR=${TOP_DIR} docker-compose -p ${PROJECT_NAME} -f ${TOP_DIR}/dev-env/docker-compose-services.yml -f ${TOP_DIR}/dev-env/docker-compose-deploymentboard.yml up -d
tail-logs:
@cd ${TOP_DIR} && \
TOP_DIR=${TOP_DIR} docker-compose -p ${PROJECT_NAME} -f ${TOP_DIR}/dev-env/docker-compose-services.yml -f ${TOP_DIR}/dev-env/docker-compose-deploymentboard.yml logs -f
show-status:
@cd ${TOP_DIR} && \
TOP_DIR=${TOP_DIR} docker-compose -p ${PROJECT_NAME} -f ${TOP_DIR}/dev-env/docker-compose-services.yml -f ${TOP_DIR}/dev-env/docker-compose-deploymentboard.yml ps