上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: kubesphere 自定义jenkins的agent镜像和maven仓库 修改maven仓库为本地 maven的cm配置【ks-devops-agent】在【kubesphere-devops-worker的namespace】下,修改节点data.MavenSetting下的内容为本地maven 阅读全文
posted @ 2023-04-15 15:11 蒲公英PGY 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: # in查询 ```python db.query(UserAccount #模型名称).filter(account_type.in_(['1','2','3'])).all() ``` # array_agg 聚合查询 ```python db.query(func.min(UserAccoun 阅读全文
posted @ 2023-03-08 18:17 蒲公英PGY 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 配置文件 config-dev.ini # -*- coding: utf-8 -*- # 数据库配置 [pgsql] host=192.168.1.2 port=5432 dbname=test user=root passwd=xxxxxxxx # Redis配置 [redis] host=19 阅读全文
posted @ 2023-03-08 18:01 蒲公英PGY 阅读(687) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # -*- coding: utf-8 -*- # @time : 2023/2/3 15:21 # @author : pugongying # @description : 日志配置 # 获取日志目录 import logging import os from 阅读全文
posted @ 2023-03-08 17:46 蒲公英PGY 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 作用 用于所有表都需要使用的字段或者方法 实现代码 base.py #!/usr/bin/python # -*- coding: utf-8 -*- # @time : 2023/2/13 17:43 # @author : pugongying # @description : from sql 阅读全文
posted @ 2023-03-08 17:43 蒲公英PGY 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 作用 需要在应用程序启动之前或者关闭时进行,例如数据库迁移,定时任务····· 实际代码 main.py import uvicorn from app import create_app app = create_app() if __name__ == '__main__': uvicorn.r 阅读全文
posted @ 2023-03-08 17:31 蒲公英PGY 阅读(239) 评论(0) 推荐(0) 编辑
摘要: cat python_oss.py #!/usr/bin/python # -*- coding: utf-8 -*- # @time : 2023/2/23 14:29 # @author : pugongying # @description : from __future__ import p 阅读全文
posted @ 2023-03-08 17:19 蒲公英PGY 阅读(463) 评论(0) 推荐(0) 编辑
摘要: cat docker-compose.yaml version: '3.3' services: es8: image: elasticsearch:8.4.2 container_name: es8 ports: - 9200:9200 - 9300:9300 environment: xpack 阅读全文
posted @ 2023-03-08 17:10 蒲公英PGY 阅读(1251) 评论(3) 推荐(1) 编辑
摘要: cat docker-compose.yml version: '3' services: mysql-nfs: container_name: mysql-nfs privileged: true image: mysql:5.7 ports: - 3306:3306 restart: alway 阅读全文
posted @ 2022-09-08 14:17 蒲公英PGY 阅读(804) 评论(0) 推荐(0) 编辑
摘要: docker-compose.yml version: '3.1' services: sonarqube: image: sonarqube:8.9.9-community container_name: sonarqube ports: - 9000:9000 volumes: - /home/ 阅读全文
posted @ 2022-09-06 18:03 蒲公英PGY 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页