Selaa lähdekoodia

add gateway-game

DESKTOP-3E973C2\Admin 4 vuotta sitten
commit
cf966890fe
4 muutettua tiedostoa jossa 27 lisäystä ja 0 poistoa
  1. 11 0
      Dockerfile
  2. 8 0
      agollo.json
  3. BIN
      gateway-game
  4. 8 0
      push.sh

+ 11 - 0
Dockerfile

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

+ 8 - 0
agollo.json

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

BIN
gateway-game


+ 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/gateway-game:${release} .
+docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/gateway-game:${release}