DESKTOP-3E973C2\Admin 4 yıl önce
işleme
4241347570
4 değiştirilmiş dosya ile 28 ekleme ve 0 silme
  1. 12 0
      Dockerfile
  2. 8 0
      agollo.json
  3. BIN
      payservice
  4. 8 0
      push.sh

+ 12 - 0
Dockerfile

@@ -0,0 +1,12 @@
+FROM golang:1.11
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY payservice /go/bin/
+COPY agollo.json /go/bin/
+RUN chmod +x /go/bin/payservice
+WORKDIR /go/bin/
+
+CMD ["/go/bin/payservice"]
+
+#EXPOSE 8199

+ 8 - 0
agollo.json

@@ -0,0 +1,8 @@
+{
+  "appId": "payservice",
+  "cluster" : "default",
+  "namespaceNames" : ["host.yaml"],
+  "ip" : "10.68.0.122:8080",
+  "oneNamespaceMode" : true,
+  "tagname" : "yaml"
+}

BIN
payservice


+ 8 - 0
push.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+release=$1
+
+[ ! -n "$release" ] && exit 1
+
+docker build -t registry-vpc.cn-beijing.aliyuncs.com/xinyue/payservice:${release} .
+docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/payservice:${release}