From cc9d389bf197c1a365e669b407ea781f2bc87fd4 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Wed, 20 Nov 2019 12:32:48 -0500 Subject: Add mod/runtimeapi Change-Id: I6c0a45ddf460a63a1e4b9284e19bf4ab111bd463 Issue-ID: DCAEGEN2-1860 Signed-off-by: Michael Hwang --- mod/runtimeapi/README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mod/runtimeapi/README.md (limited to 'mod/runtimeapi/README.md') diff --git a/mod/runtimeapi/README.md b/mod/runtimeapi/README.md new file mode 100644 index 0000000..d173df8 --- /dev/null +++ b/mod/runtimeapi/README.md @@ -0,0 +1,35 @@ +# Runtime API + +HTTP API to support runtime environment for DCAE-MOD. It has two major functionalities: +1) accepts changes on the flow-graph via fbp protocol +2) generate and distribute blueprints based on the change made on the flow-graph + + +## Prerequisite + +If the docker image is not built then + +- Build current project +``` +mvn clean install + +``` + +- Dockerize the web module of the current project +``` +cd runtime-web +docker build -t runtime-api:latest . +``` + +## Run Docker container +Note that DASHBOARD related variables should be set in the container +``` +docker run --name runtime-api -d -p 9090:9090 \ + -e DASHBOARD_URL= -e DASHBOARD_USERNAME= -e DASHBOARD_PASSWORD= \ + runtime-api:latest +``` + + +docker run --name runtime-api -d -p 9090:9090 \ + -e DASHBOARD_URL=https://dcae-inventory/dcae-service-types \ + runtime-api:latest -- cgit 1.2.3-korg