Gogs 1 år sedan
incheckning
eac68d5005
5 ändrade filer med 34 tillägg och 0 borttagningar
  1. 10 0
      Dockerfile
  2. BIN
      apple_checkmode
  3. BIN
      applecheckmode
  4. 16 0
      config.yaml
  5. 8 0
      push.sh

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+FROM golang:1.9.2
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY applecheckmode /go/bin/
+COPY config.yaml /go/bin/
+RUN chmod +x /go/bin/applecheckmode
+WORKDIR /go/bin
+CMD ["/go/bin/applecheckmode", "applecheckmode", "--config=/go/bin/config.yaml"]
+EXPOSE 9001

BIN
apple_checkmode


BIN
applecheckmode


+ 16 - 0
config.yaml

@@ -0,0 +1,16 @@
+mode: release
+port: 9001
+brand: 3
+mysql: # web自己新的数据库信息
+  addr: rm-2ze64r84occlcs9do.mysql.rds.aliyuncs.com:3306
+  username: nppa_user
+  password: n86rtKeXHtiFB8CG
+  db: apple_checkmode
+  charset: utf8mb4
+  maxopen: 10
+  maxidle: 5
+redis:                # web本身 redis
+  addr: r-2zeswgvxuwmj4o04jl.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 1
+  poolsize: 5

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