...
Code Block |
---|
language | bash |
---|
firstline | 6 |
---|
title | Policy API Docker Image Build |
---|
|
cd ~/
git clone https://gerrit.onap.org/r/oparent
cd oparent/
mvn clean install
cd ../
git clone https://gerrit.onap.org/r/policy/parent
cd parent/
mvn clean install
cd ../
git clone https://gerrit.onap.org/r/policy/api
cd api/
mvn clean install -Pdocker
# Run policy-api container
docker run -d --name policy-api -p 6969:6969 -it onap/policy-api:2.0.0-SNAPSHOT-latest
|
3- Check health status of the API service.
Code Block |
---|
language | bash |
---|
title | Health Check |
---|
|
curl --user healthcheck:zb\!XztG34 -H “Accept=application/json, Content-Type=application/json” -k https://<VM_IP>:6969/healthcheck
e.g,
curl --user healthcheck:zb\!XztG34 -H “Accept=application/json, Content-Type=application/json” -k https://10.12.6.93:6969/healthcheck |