blob: fcf3f4470858bc1afa4376fdc133931a736c0295 [file] [log] [blame]
Michal Banka7f770492021-02-08 12:42:52 +01001include environment.config
2
3all: build docker run cleanup
4
5port-forward:
6 @echo "Forwarding ports. To cancel forwarding press CTRL+C."
7 @$(SSH) -L 3904:$(WORKER_IP):$(MESSAGE_ROUTER_PORT) ubuntu@$(RKE_IP) -i $(SSH_LAB_KEY_PATH) -N
8
9build:
10 @echo "Building ves-openapi-manager"
11 @$(MVN) clean package
12
13docker:
14 @echo "Building ves-openapi-manager docker image"
15 @$(DOCKER) build --tag ves-openapi-manager:latest .
16
17run:
18 @echo "Starting ves-openapi-manager docker containers"
19 @$(COMPOSE) --file ./docker-compose.yml up
20
21cleanup:
22 @echo "Cleaning up ves-openapi-manager project, removing containers"
23 @rm -rf ./target
24 @$(COMPOSE) --file ./docker-compose.yml down