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

[GitHub] asifdxtreme closed pull request #367: SCB-634 Fix Docker file for m2 release

asifdxtreme closed pull request #367: SCB-634 Fix Docker file for m2 release
URL: https://github.com/apache/incubator-servicecomb-service-center/pull/367
 
 
   

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/DockerGuide.md b/DockerGuide.md
new file mode 100644
index 00000000..4243d8fe
--- /dev/null
+++ b/DockerGuide.md
@@ -0,0 +1,20 @@
+### Guide to build the Docker Image
+
+###### Step 1: 
+Clone the Dependency
+```
+gvt restore
+```
+
+###### Step 2:
+Make the release
+
+```
+bash -x scripts/release/make_release.sh linux 1.0.0 latest
+```
+
+###### Step 3:
+Make the Docker Image
+```
+docker build -t service-center:dev .
+```
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index c2f143d8..1b51c34e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,14 +13,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM golang
+FROM ubuntu
 
-ADD . /go/src/github.com/apache/incubator-servicecomb-service-center
+ADD apache-servicecomb-incubating-service-center-latest-linux-amd64 /app/
 
-RUN go get github.com/FiloSottile/gvt
+RUN sed -i 's/httpaddr = 127.0.0.1/httpaddr = 0.0.0.0/g' /app/conf/app.conf
 
-RUN cd /go/src/github.com/apache/incubator-servicecomb-service-center && bash -x scripts/release/make_release.sh linux 1.0.0 latest
-
-RUN sed -i 's/httpaddr = 127.0.0.1/httpaddr = 0.0.0.0/g' /go/src/github.com/apache/incubator-servicecomb-service-center/apache-servicecomb-incubating-service-center-latest-linux-amd64/conf/app.conf
-
-ENTRYPOINT ["/go/src/github.com/apache/incubator-servicecomb-service-center/apache-servicecomb-incubating-service-center-latest-linux-amd64/service-center"]
+ENTRYPOINT ["/app/service-center"]


 

----------------------------------------------------------------
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