diff options
author | LiZi <li.zi30@zte.com.cn> | 2018-04-15 21:16:17 -0400 |
---|---|---|
committer | LiZi <li.zi30@zte.com.cn> | 2018-04-15 21:16:26 -0400 |
commit | 00e75cc74e5c93a25136d4576ffe23878ca1825c (patch) | |
tree | a904ead2e88a4c6bba9bac4fdd704524800531de /docs/platform/installation.rst | |
parent | 20b2f6d972919589c94229d359499c7d28f4a18e (diff) |
Update the esr installation doc.
Change-Id: Icf6e644625403ce16366d3ca42de94c047d56ea6
Issue-ID: AAI-1029
Signed-off-by: LiZi <li.zi30@zte.com.cn>
Diffstat (limited to 'docs/platform/installation.rst')
-rw-r--r-- | docs/platform/installation.rst | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/platform/installation.rst b/docs/platform/installation.rst index 6959d04..199f1cf 100644 --- a/docs/platform/installation.rst +++ b/docs/platform/installation.rst @@ -22,21 +22,25 @@ 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 +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 run -p 9519:8080 -d --net=host --name esr-gui nexus3.onap.org:10001/onap/aai/esr-gui +
+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 http://ESR_SERVICE_IP:9518/api/aai-esr-server/v1/test +GET https://ESR_SERVICE_IP:9518/api/aai-esr-server/v1/test The returned status should be 200. @@ -72,10 +76,10 @@ curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "multicloud 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" +
+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 ^^^^^^^^^^^^^^^^^^^^^^^ |