aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: fcf3f4470858bc1afa4376fdc133931a736c0295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include environment.config

all: build docker run cleanup

port-forward:
	@echo "Forwarding ports. To cancel forwarding press CTRL+C."
	@$(SSH) -L 3904:$(WORKER_IP):$(MESSAGE_ROUTER_PORT) ubuntu@$(RKE_IP) -i $(SSH_LAB_KEY_PATH) -N

build:
	@echo "Building ves-openapi-manager"
	@$(MVN) clean package

docker:
	@echo "Building ves-openapi-manager docker image"
	@$(DOCKER) build --tag ves-openapi-manager:latest .

run:
	@echo "Starting ves-openapi-manager docker containers"
	@$(COMPOSE) --file ./docker-compose.yml up

cleanup:
	@echo "Cleaning up ves-openapi-manager project, removing containers"
	@rm -rf ./target
	@$(COMPOSE) --file ./docker-compose.yml down