Browse Source

上传文件至 'versioncheck'

chenghongxi 4 years ago
parent
commit
bb7e506aaf
3 changed files with 19 additions and 0 deletions
  1. 11 0
      versioncheck/Dockerfile
  2. 8 0
      versioncheck/agollo.json
  3. BIN
      versioncheck/versioncheck

+ 11 - 0
versioncheck/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
versioncheck/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"
+}

BIN
versioncheck/versioncheck