diff --git a/12.sh b/12.sh new file mode 100644 index 0000000..67ecb64 --- /dev/null +++ b/12.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +bos_dir="bos://dg-algo/" + + +while IFS= read -r prefix +do + /home/users/xianbao01.hou/linux-bcecmd-0.4.7/bcecmd bos ls $bos_dir$prefix/ --all | grep "2025-05-13 19:1" | awk '{print $5}' > png-list.txt + while IFS= read -r png + do + full_path="${bos_dir}${prefix}/${png}" + if ! /home/users/xianbao01.hou/linux-bcecmd-0.4.7/bcecmd bos rm "$full_path" --yes >> /dev/null 2>&1; then + echo "$full_path" >> png-delete.txt + fi + done < ./png-list.txt +done < dir-list.txt \ No newline at end of file diff --git a/k8s/tzb/deploy.yaml b/k8s/tzb/deploy.yaml new file mode 100644 index 0000000..b50ee78 --- /dev/null +++ b/k8s/tzb/deploy.yaml @@ -0,0 +1,68 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tzb-server + namespace: bj1-tzb + labels: + app: tzb-server +spec: + replicas: 2 + selector: + matchLabels: + app: tzb-server + template: + metadata: + labels: + app: tzb-server + spec: + imagePullSecrets: + - name: registry-auth + containers: + - name: tzb-server + image: ccr-29eug8s3-vpc.cnc.bj.baidubce.com/public/tiaozhanbei-server:05141 + ports: + - containerPort: 8080 + resources: + requests: + cpu: "100m" + memory: "128Mi" + limits: + cpu: "200m" + memory: "256Mi" + env: + - name: DB_HOST + value: "mysql-prod.rdsmd4w68w703bh.rds.bj.baidubce.com" + restartPolicy: Always +--- +apiVersion: v1 +kind: Service +metadata: + name: tzb-server + namespace: bj1-tzb +spec: + selector: + app: tzb-server + ports: + - protocol: TCP + port: 8080 + targetPort: 8080 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: tzb-ingress + namespace: bj1-tzb +spec: + ingressClassName: nginx + rules: + - host: tiaozhanbei.d-robotics.cc + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: tzb-server + port: + number: 8080 + diff --git a/k8s/tzb/ingress.yaml b/k8s/tzb/ingress.yaml new file mode 100644 index 0000000..ad7e2f3 --- /dev/null +++ b/k8s/tzb/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: cvpr-competition-ingress + namespace: bj1-cvpr +spec: + ingressClassName: nginx + rules: + - host: cvpr-competition.d-robotics.cc + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: cvpr-competition-server + port: + number: 8080 diff --git a/k8s/tzb/service.yaml b/k8s/tzb/service.yaml new file mode 100644 index 0000000..b11c823 --- /dev/null +++ b/k8s/tzb/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: cvpr-competition-server + namespace: bj1-cvpr +spec: + selector: + app: cvpr-competition-server + ports: + - protocol: TCP + port: 8080 + targetPort: 8080 diff --git a/passwd/passwd.txt b/passwd/passwd.txt index e8c89ad..7b7ee5a 100644 --- a/passwd/passwd.txt +++ b/passwd/passwd.txt @@ -32,3 +32,4 @@ tsTvYzX*V22SIIX3LSZN!9%wCjOG*aKi vGep^zATq9yBe#mNs9(IxFUhzBGxFiL8 S(q$*F^M8oDt^IE9oKLDY#8mB@IadGjL DII)Qpqd^Dss!bA(oZR##jdzH#^Wft5v +X4H)KK(*nvmx)0gU5ys$x2kpCxdg^mJk