diff options
author | Michal Banka <michal.banka@nokia.com> | 2021-02-08 12:42:52 +0100 |
---|---|---|
committer | Michal Banka <michal.banka@nokia.com> | 2021-02-11 03:13:24 +0100 |
commit | 7f7704977116ead5bc3ae8cba4afdf698d08bce7 (patch) | |
tree | 989ee772ab8c2b10e2b544485a4cc07b00cc5bbd /Makefile | |
parent | ba2f6a95fb320238638b6a7bf7ddf07d8ef0d6bb (diff) |
Add ves-openapi-manager implementation
Change-Id: I923fa43028c78989604547b365a3326a1f8e9548
Signed-off-by: Michal Banka <michal.banka@nokia.com>
Issue-ID: DCAEGEN2-2572
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fcf3f44 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |