...
1. Run the Consul dockers.
sudo docker run -d --net=host --name msb_consul consul:01.94.3
2. Run the MSB dockers.
...
3. Explore the MSB portal.
4. Register your REST service to MSB via curl
For testing, we can register the services via curl. For real use case, MSB can register the services automatically when deploying the ONAP components are deployed by OOM or Heat template.
...
curl -X POST -H "Content-Type: application/json" -d "{\"serviceName\": \"aai-cloudInfrastructure\", \"version\": \"v11\", \"url\": \"/aai/v11/cloud-infrastructure\",\"protocol\": \"REST\", \"enable_ssl\":\"true\", \"nodes\": [ {\"ip\": \"$AAI_IP\",\"port\": \"$AAI_PORT\"}]}" http https://$MSB_IP:$MSB_PORT/api/microservices/v1/services
...
sudo docker run -d -p 8500:8500 --name msb_consul consul:01.94.3
CONSUL_IP=`sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' msb_consul`
...
5. Open the MSB IAG portal in the browser. You are able to see the registered AAI services.
httphttps://${Node_IP}:3008030283/msb