Gogs 1 år sedan
förälder
incheckning
13ce02ad5e
4 ändrade filer med 0 tillägg och 96 borttagningar
  1. 0 11
      Dockerfile
  2. BIN
      active
  3. 0 77
      active.yaml
  4. 0 8
      push.sh

+ 0 - 11
Dockerfile

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

BIN
active


+ 0 - 77
active.yaml

@@ -1,77 +0,0 @@
-port: 9001
-runmode: debug  #gin http调试模式 debug release 
-brand:
-  id: 3
-  tag: xinyue
-  domain: yukeonline.com
-  name: 心悦
-  userfrom: 7
-log:
-  dir : ./log                           # 文件保存路径
-  file : active                     # 文件名称,实际会保存为{filename}+{datetime}
-  level : 3                         # 日志等级:0-error,1-warning,2-info,3-debug
-  savefile : false                    # 是否保存为文件,置为false会输出到标准输出
-mysql:                              # web自己新的数据库信息
-  addr: rm-2ze64r84occlcs9do.mysql.rds.aliyuncs.com:3306  # 数据库信息
-  username: userapi     # 用户
-  password: userapi@xinyue0923 # 密码
-  db: log        # 数据库
-  charset: utf8mb4
-  max_open: 10          # 最大连接数
-  max_idle: 5           # 最大空闲数
-mysqlext:                         # 运营ext数据库信息
-  addr: rm-2ze64r84occlcs9do.mysql.rds.aliyuncs.com:3306  # 数据库信息
-  username: userapi     # 用户
-  password: userapi@xinyue0923 # 密码
-  db: ext        # 数据库
-  charset: utf8mb4
-  max_open: 10          # 最大连接数
-  max_idle: 5           # 最大空闲数
-redis:                # web本身 redis
-  addr: r-2zeswgvxuwmj4o04jl.redis.rds.aliyuncs.com:6379
-  password: weiLeJXreDis2017
-  db: 1
-  poolsize: 5
-redis8:                  # 运营系统存储配置redis
-  addr: r-2zeswgvxuwmj4o04jl.redis.rds.aliyuncs.com:6379
-  password: weiLeJXreDis2017
-  db: 8
-  poolsize: 5
-gameredis0:               # 游戏redis,目前获取相关排名作用
-  addr: r-2zeswgvxuwmj4o04jl.redis.rds.aliyuncs.com:6379
-  password: weiLeJXreDis2017
-  db: 0
-  poolsize: 5
-mongodb:             # 用户mongoDB
-  addrs: ['dds-2ze43f61a49243341.mongodb.rds.aliyuncs.com:3717','dds-2ze43f61a49243342.mongodb.rds.aliyuncs.com:3717']
-  user: "userapi"
-  password: "gQ$VDWU_nE#s"
-  database: "userext"
-  poollimit: 10
-kafka:
-  brokers: ['alikafka-pre-cn-tl32t82ll00h-1-vpc.alikafka.aliyuncs.com:9092','alikafka-pre-cn-tl32t82ll00h-2-vpc.alikafka.aliyuncs.com:9092','alikafka-pre-cn-tl32t82ll00h-3-vpc.alikafka.aliyuncs.com:9092']
-  groupid: 'user-api'
-  topic: 'game_msg_test'
-  minbytes: 1
-  maxbytes: 10000000
-propServer:
-  addr: 10.40.115.152
-  port: 7777
-  timeout: 60
-alilog:
-  endpoint: cn-beijing-intranet.log.aliyuncs.com
-  accessKeyId: LTAI4FpV3iJgr8P3k4La8Hy3
-  accessKeySecret: sZl51xZlMTzanMGQmky9K06QrksrRK
-  project: xylogs
-  projectOld: xylogs2018
-alioss:
-  endpoint: oss-cn-beijing.aliyuncs.com #http://cloudimg2.oss-cn-beijing.aliyuncs.com/images/f8db82f445f3766e7f33e720a7c92dec.jpg
-  accesskeyid: LTAI4Fkkdg43AbEEhjaESiBy
-  accesskeysecret: GK8AtezIg0dDzDfzp3lWO0Iu5NmFhw
-  bucket: cloudimg-xy
-  bucket2: cloudimg-xy
-  bucketurl: cloudimg-xy.yukeonline.com
-  domain: yukeonline.com
-  domainurl: cloudimg-xy.yukeonline.com
-  httphead: https
-  document:

+ 0 - 8
push.sh

@@ -1,8 +0,0 @@
-#!/bin/bash
-
-release=$1
-
-[ ! -n "$release" ] && exit 1
-
-docker build -t registry-vpc.cn-beijing.aliyuncs.com/xinyue/active:${release} .
-docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/active:${release}