summaryrefslogtreecommitdiffstats
path: root/mod/runtimeapi/README.md
blob: d173df8c78a166ddaa22819eb26af4fbacc5c293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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