@@ -1,11 +0,0 @@
-cd `dirname $0`
-cd ../
-
-version=$(date +%s)
-docker build -t registry.cn-chengdu.aliyuncs.com/cxzx-spider/binlog:$version .
-docker push registry.cn-chengdu.aliyuncs.com/cxzx-spider/binlog:$version
-sed -i "s!{ { image } }!registry\.cn-chengdu\.aliyuncs\.com/cxzx-spider/binlog:$version!g" deploy/taide-binlog.yml
-sed -i "s!{ { image } }!registry\.cn-chengdu\.aliyuncs\.com/cxzx-spider/binlog:$version!g" deploy/huaqiyun-binlog.yml
-kubectl apply -f deploy/taide-binlog.yml
-kubectl apply -f deploy/huaqiyun-binlog.yml
@@ -2,6 +2,6 @@ cd `dirname $0`
cd ../
git reset HEAD --hard
git pull
-gradle build
+gradle build -Dorg.gradle.java.home=/opt/jdk-17.0.4.1
@@ -1,51 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: huaqiyun-binlog
-spec:
- replicas: 1
- selector:
- matchLabels:
- k8s-app: huaqiyun-binlog
- strategy:
- type: Recreate
- template:
- metadata:
- labels:
- spec:
- hostAliases:
- - ip: "172.16.101.16"
- hostnames:
- - "baidu06"
- - ip: "172.16.101.17"
- - "baidu07"
- - ip: "172.16.101.18"
- - "baidu08"
- - ip: "172.16.101.19"
- - "baidu09"
- imagePullSecrets:
- - name: registry-key
- containers:
- - command: [ "java","-cp","/app.jar","com.cxzx.canal.CanalClientMain","huaqiyun","huaqiyun-binlog" ]
- env:
- - name: PATH
- value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- - name: TZ
- value: Asia/Shanghai
- image: { { image } }
- imagePullPolicy: IfNotPresent
- resources:
- limits:
- cpu: 100m
- memory: 515Mi
- requests:
- memory: 50Mi
- dnsPolicy: ClusterFirst
- terminationGracePeriodSeconds: 10
- name: taide-binlog
- k8s-app: taide-binlog
- - command: [ "java","-cp","/app.jar","com.cxzx.canal.CanalClientMain","canal","taide-binlog" ]