diff options
author | 2018-04-15 21:18:49 -0400 | |
---|---|---|
committer | 2018-04-15 21:19:00 -0400 | |
commit | 75fb4f1f47bfec02aff4b03b2e5ed5a94b86509a (patch) | |
tree | 012a358474719d65a17d6f06b3951493a729e2cc /docs | |
parent | f8da829808161871d1f85f879e09bce31f36aac2 (diff) |
Update the esr installation doc.
Change-Id: I44f771dc6545143c274613640b3f0eff52f8b814
Issue-ID: AAI-1029
Signed-off-by: LiZi <li.zi30@zte.com.cn>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/platform/installation.rst | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/docs/platform/installation.rst b/docs/platform/installation.rst index 6959d04..e9a1245 100644 --- a/docs/platform/installation.rst +++ b/docs/platform/installation.rst @@ -19,25 +19,29 @@ sudo apt-get install -y docker-engine docker ps -Run esr-server docker -^^^^^^^^^^^^^^^^^^^^^^^ - -Login the ONAP docker registry first: sudo docker login -u docker -p docker nexus3.onap.org:10001 - -sudo docker run -p 9518:9518 -d --net=host --name esr-server -e MSB_ADDR=${MSB_SERVER_IP}:80 nexus3.onap.org:10001/onap/aai/esr-server - -Run esr-gui docker -^^^^^^^^^^^^^^^^^^^^^^^ - -sudo docker run -p 9519:8080 -d --net=host --name esr-gui nexus3.onap.org:10001/onap/aai/esr-gui - -Check status of ESR -^^^^^^^^^^^^^^^^^^^^^^^ - -Test whether esr-server is running: - -GET http://ESR_SERVICE_IP:9518/api/aai-esr-server/v1/test - +Run esr-server docker
+^^^^^^^^^^^^^^^^^^^^^^^
+
+Login the ONAP docker registry first: sudo docker login -u docker -p docker nexus3.onap.org:10001
+
+sudo docker pull nexus3.onap.org:10001/onap/aai/esr-server:latest
+
+sudo docker run -i -t -d -p 9518:9518 -e MSB_ADDR=${MSB_SERVER_IP}:80 --name esr_server nexus3.onap.org:10001/onap/aai/esr-server:latest
+
+Run esr-gui docker
+^^^^^^^^^^^^^^^^^^^^^^^
+
+sudo docker pull nexus3.onap.org:10001/onap/aai/esr-gui:latest
+
+docker run -i -t -d -p 9519:8080 -e MSB_ADDR=${MSB_SERVER_IP}:80 --name esr_gui nexus3.onap.org:10001/onap/aai/esr-gui:latest
+
+Check status of ESR
+^^^^^^^^^^^^^^^^^^^^^^^
+
+Test whether esr-server is running:
+
+GET https://ESR_SERVICE_IP:9518/api/aai-esr-server/v1/test
+
The returned status should be 200. Visit ESR portal: @@ -70,12 +74,12 @@ curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "multicloud curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "multicloud-titanium_cloud", "version": "v0", "url": "/api/multicloud-titanium_cloud/v0","protocol": "REST", "nodes": [ {"ip": "'$MultiCloud_IP'","port": "9005"}]}' "http://$MSB_SERVER_IP:10081/api/microservices/v1/services" -ESR register to MSB -^^^^^^^^^^^^^^^^^^^^^^^ - -curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "aai-esr-server", "version": "v1", "url": "/api/aai-esr-server/v1","protocol": "REST", "visualRange":"1", "nodes": [ {"ip": "ESR_SERVER_IP","port": "9518"}]}' "http://MSB_SERVER_IP:10081/api/microservices/v1/services" - -curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "aai-esr-gui", "url": "/esr-gui","protocol": "UI", "visualRange":"1", "path":"/iui/aai-esr-gui", "nodes": [ {"ip": "ESR_SERVER_IP","port": "9519"}]}' "http://MSB_SERVER_IP:10081/api/microservices/v1/services" +ESR register to MSB
+^^^^^^^^^^^^^^^^^^^^^^^
+
+curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "aai-esr-server", "version": "v1", "url": "/api/aai-esr-server/v1","protocol": "REST", "enable_ssl":"true", "visualRange":"1", "nodes": [ {"ip": "ESR_SERVER_IP","port": "9518"}]}' "http://MSB_SERVER_IP:10081/api/microservices/v1/services"
+
+curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "aai-esr-gui", "version": "v1", "url": "/esr-gui","path": "/iui/aai-esr-gui","protocol": "UI", "nodes": [ {"ip": "ESR_SERVER_IP","port": "9519"}]}' "http://MSB_SERVER_IP:10081/api/microservices/v1/services" ESR usage ^^^^^^^^^^^^^^^^^^^^^^^ |