You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/01/22 09:33:41 UTC

[GitHub] little-cui closed pull request #256: CB-90 Failed to deploy frontend Service center on Huawei Cloud

little-cui closed pull request #256: CB-90 Failed to deploy frontend Service center on Huawei Cloud
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/256
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/scripts/docker/build-frontend-image/README.md b/scripts/docker/build-frontend-image/README.md
index b433c493..ec476737 100644
--- a/scripts/docker/build-frontend-image/README.md
+++ b/scripts/docker/build-frontend-image/README.md
@@ -1,16 +1,27 @@
-## Service-Center support for build docker image
+## Service Center Frontend
 
-This script helps you to make the docker image of service-center frontend  present in your current working directory.
-
-The start_linux.sh will be the entrypoint for the docker container to start.
+This script helps you to make the docker image of service-center frontend present in "PROJECT_ROOT/frontend" folder. Where PROJECT_ROOT is project's top level folder. The script file "PROJECT_ROOT/scripts/frontend/start_linux.sh" will be the entrypoint for docker container.
 
 ### How To Run
 
-This script assumes you have already downloaded all the dependencies using 'gvt restore'.
+This script assumes you have already downloaded all the dependencies using 'gvt restore'. Make sure service-center application is running and get service-center applications IP and PORT addresses.
+
+Update "PROJECT_ROOT/frontend/conf/app.conf" with service-center applications IP and PORT address.
+
+Example app.conf file,
+
+	SC_HOST_IP=123.123.123.123
+	SC_HOST_PORT=30100
+	SC_HOST_MODE=http
+	FRONTEND_HOST_IP=0.0.0.0
+	FRONTEND_HOST_PORT=30103
+
+Then build docker image of frontend from folder "PROJECT_ROOT/scripts/docker/build-frontend-image/".
 
     bash -x build.sh
     
-Once the script finishes you will see image scfrontend-dev.tgz in the same directory. 
-Load this image to the docker and start using.
+Once the script finishes you will see image scfrontend-dev.tgz in the same directory. You can use this this image to load the docker and start using. Run following command, open Web Browser and connect to URL "http://<HOST_IP>:30103" to view frontend UI.
+
+    docker run -d -p 30103:30103 -t servicecomb/scfrontend
 
-    docker run -d -p 30101:30103 -t servicecomb/scfrontend
+Where HOST_IP is the ip of host machine where docker container for frontend is executing.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services