{"id":19033801,"url":"https://github.com/dumasd/config-ops","last_synced_at":"2025-04-23T17:43:18.799Z","repository":{"id":251910343,"uuid":"838628124","full_name":"dumasd/config-ops","owner":"dumasd","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-27T08:44:36.000Z","size":2442,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-11T13:09:20.562Z","etag":null,"topics":["database","devops","devops-tools","jenkins","liquibase","nacos","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dumasd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T03:30:48.000Z","updated_at":"2024-12-27T08:44:40.000Z","dependencies_parsed_at":"2024-08-28T02:40:41.551Z","dependency_job_id":"30afb99a-c6e0-4e3d-b219-488b292200f5","html_url":"https://github.com/dumasd/config-ops","commit_stats":null,"previous_names":["dumasd/nacos-config","dumasd/config-ops"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fconfig-ops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fconfig-ops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fconfig-ops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dumasd%2Fconfig-ops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dumasd","download_url":"https://codeload.github.com/dumasd/config-ops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249348644,"owners_count":21255294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","devops","devops-tools","jenkins","liquibase","nacos","python"],"created_at":"2024-11-08T21:42:27.209Z","updated_at":"2025-04-23T17:43:18.790Z","avatar_url":"https://github.com/dumasd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# config-ops\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)[![Build Status](https://github.com/apache/superset/workflows/Python/badge.svg)](https://github.com/apache/superset/actions)\n\n一款 DevOps 配置工具：\n\n- Nacos Yaml、Properties格式的配置文件变更。\n- 使用 Liquibase 执行数据库版本脚本。\n\n结合 [dumasd/jenkins-config-ops-plugin (github.com)](https://github.com/dumasd/jenkins-config-ops-plugin) 插件实现与Jenkins的集成。\n\n## 快速开始\n\n### 部署Liquibase\n\nLiquibase安装文档: https://docs.liquibase.com/start/install/home.html\n\n### 部署Config-Ops\n\n#### 本地部署\n\n下载 [Config-Ops Release](https://github.com/dumasd/config-ops/releases/latest/download/config-ops-linux.tar.gz)  文件解压，release 文件中包含 `config-ops` 可执行文件和配置文件样例 `config.yaml.sample`\n\n```shell\n# 从sample中拷贝出一个配置文件，修改配置文件中的配置\ncp config.yaml.sample config.yaml\n\n# 修改配置\nvim config.yaml\n\n# 启动服务\n./startup.sh\n\n```\n\n#### Docker部署\n\nconfig-ops镜像库： [wukaireign/config-ops general | Docker Hub](https://hub.docker.com/repository/docker/wukaireign/config-ops/general)\n\n```shell\ngit clone https://github.com/dumasd/config-ops.git\n\ncd config-ops\n\n# 修改 docker-compose.yaml CONFIGOPS_CONFIG 部分\nvim docker-compose.yaml\n\n# docker-compose启动应用\ndocker-compose -f docker-compose.yaml up -d\n```\n\n## 本地开发\n\n### 要求\n\n- Python：3.9及以上版本\n\n### 开发环境设置\n\n```shell\n# 拉取代码 \ngit clone https://github.com/dumasd/config-ops.git\ncd config-ops\n\n# 设置python虚拟环境\npython3 -m venv .venv\n. .venv/bin/activate\n\n# 安装依赖\npip3 install -r requirements.txt\n\n# 修改config.yaml, 启动应用\npython3 -m flask --app configops/app.py run\n\n# Run Tests\npython3 -m pytest ./tests\n\n# pyinstaller 打包成可执行的二进制\npyinstaller app.spec \n\n# 发布到pipy\npip3 install --upgrade setuptools wheel twine\npython3 setup.py sdist bdist_wheel\npython3 -m twine upload dist/*\n```\n\n\n\n```\n# gunicorn 启动应用\npip install gunicorn\ngunicorn -w 4 'configops.app:create_app()'\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumasd%2Fconfig-ops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdumasd%2Fconfig-ops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumasd%2Fconfig-ops/lists"}