Michal Banka | 7f77049 | 2021-02-08 12:42:52 +0100 | [diff] [blame] | 1 | include environment.config |
| 2 | |
| 3 | all: build docker run cleanup |
| 4 | |
| 5 | port-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 | |
| 9 | build: |
| 10 | @echo "Building ves-openapi-manager" |
| 11 | @$(MVN) clean package |
| 12 | |
| 13 | docker: |
| 14 | @echo "Building ves-openapi-manager docker image" |
Michal Banka | a3e5e53 | 2021-02-12 14:45:59 +0100 | [diff] [blame^] | 15 | @$(DOCKER) build --tag $(IMAGE):latest . |
Michal Banka | 7f77049 | 2021-02-08 12:42:52 +0100 | [diff] [blame] | 16 | |
| 17 | run: |
| 18 | @echo "Starting ves-openapi-manager docker containers" |
| 19 | @$(COMPOSE) --file ./docker-compose.yml up |
| 20 | |
| 21 | cleanup: |
| 22 | @echo "Cleaning up ves-openapi-manager project, removing containers" |
| 23 | @rm -rf ./target |
| 24 | @$(COMPOSE) --file ./docker-compose.yml down |