diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2019-12-11 20:54:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-11 20:54:46 +0000 |
commit | a1f590d75dc29759d2abaa14915c70838abdc9c2 (patch) | |
tree | 7b485df413bf6c71745cefcd463a65adcf24522c /mod/runtimeapi/README.md | |
parent | 89ff166e60908fc9fbc2b6075edf9d6676d1b974 (diff) | |
parent | cc9d389bf197c1a365e669b407ea781f2bc87fd4 (diff) |
Merge "Add mod/runtimeapi"
Diffstat (limited to 'mod/runtimeapi/README.md')
-rw-r--r-- | mod/runtimeapi/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
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=<url> -e DASHBOARD_USERNAME=<username> -e DASHBOARD_PASSWORD=<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 |