浏览代码

上传文件至 ''

chenghongxi 4 年之前
父节点
当前提交
e25e15acd1
共有 4 个文件被更改,包括 27 次插入0 次删除
  1. 11 0
      Dockerfile
  2. 8 0
      agollo.json
  3. 8 0
      push.sh
  4. 二进制
      versioncheck

+ 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 agollo.json /go/bin/
+COPY versioncheck /go/bin/
+RUN chmod +x /go/bin/versioncheck
+WORKDIR /go/bin
+
+CMD ["/go/bin/versioncheck"]
+

+ 8 - 0
agollo.json

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

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

二进制
versioncheck