摘要:
# python操作pgsql备份还原 common.py ```python #!/usr/bin/env python # encoding: utf-8 import argparse dbs = [ "test1", "test2" ] # ct: pgsql容器的名称 ct = "pg" 阅读全文
摘要:
# python使用FastAPI返回简单html页面 ```python # pip install uvicorn prometheus_client # pip install fastapi yaml # uvicorn main:app --reload from fastapi impo 阅读全文
摘要:
# python 调用dingding的API进行消息发送 使用python的fastapi快速构建后端api接口 ```python # pip install fastapi requests uvicorn from typing import Set from fastapi import 阅读全文
摘要:
# python 调用Jenkins的API进行发布 ```python # pip install pyyaml==5.4.1 import json import requests,sys,os,time import requests,sys from requests.auth import 阅读全文
摘要:
- hosts: test remote_user: root gather_facts: false vars: ansible_python_interpreter: /usr/bin/python3 #指定python环境 serial: "50%" #更新比例,或者是具体数量serial:1 阅读全文
摘要:
apiVersion: apps/v1 kind: Deployment metadata: name: deploy-service # deployment名称 namespace: test annotations: kubernetes.io/change-cause: "1.0" # 版本 阅读全文
摘要:
# 前端发布脚本 ``` pipeline { agent any tools { jdk 'java17' //指定java版本 } environment { git_url = 'http://192.168.1.2/web/test.git' deployenv = 'test' //部署环 阅读全文
摘要:
```python # pip3 install requests import requests,sys,os,time from requests.packages import urllib3 urllib3.disable_warnings() def get_tags (base_url, 阅读全文