Bladeren bron

first commit

DESKTOP-3E973C2\Admin 4 jaren geleden
commit
2f2b0fc344
4 gewijzigde bestanden met toevoegingen van 27 en 0 verwijderingen
  1. 11 0
      Dockerfile
  2. 8 0
      agollo.json
  3. BIN
      kafka-promotion-stats
  4. 8 0
      push.sh

+ 11 - 0
Dockerfile

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

+ 8 - 0
agollo.json

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

BIN
kafka-promotion-stats


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