blob: d675741b33f2f6cfcf83b2265c361d0db0e422e2 [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"
Michal Bankaa3e5e532021-02-12 14:45:59 +010015 @$(DOCKER) build --tag $(IMAGE):latest .
Michal Banka7f770492021-02-08 12:42:52 +010016
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