Skip to main content

config-ops

LicenseBuild Status

一款 DevOps 配置工具:

  • Nacos Yaml、Properties格式的配置文件变更。
  • 使用 Liquibase 执行数据库版本脚本。

结合 dumasd/jenkins-config-ops-plugin (github.com) 插件实现与Jenkins的集成。

快速开始

部署Liquibase

Liquibase安装文档: https://docs.liquibase.com/start/install/home.html

部署Config-Ops

本地部署

下载 Config-Ops Release 文件解压,release 文件中包含 config-ops 可执行文件和配置文件样例 config.yaml.sample

# 从sample中拷贝出一个配置文件,修改配置文件中的配置
cp config.yaml.sample config.yaml

# 修改配置
vim config.yaml

# 启动服务
./startup.sh

Docker部署

config-ops镜像库: wukaireign/config-ops general | Docker Hub

git clone https://github.com/dumasd/config-ops.git

cd config-ops

# 修改 docker-compose.yaml CONFIGOPS_CONFIG 部分
vim docker-compose.yaml

# docker-compose启动应用
docker-compose -f docker-compose.yaml up -d

本地开发

要求

  • Python:3.9及以上版本

开发环境设置

# 拉取代码 
git clone https://github.com/dumasd/config-ops.git
cd config-ops

# 设置python虚拟环境
python3 -m venv .venv
. .venv/bin/activate

# 安装依赖
pip3 install -r requirements.txt

# Run Tests
python3 -m pytest ./tests

# pyinstaller 打包成可执行的二进制
pyinstaller app.spec 

# 发布到pipy
pip3 install --upgrade setuptools wheel twine
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*

Metadata

Release files for configops 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for configops 0.2.3
File Size Uploaded
configops-0.2.3.tar.gz 27.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for configops 0.2.3
File Interpreter ABI Platform
configops-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 55.9 kB

Release files / configops-0.2.3.tar.gz

Download URL configops-0.2.3.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
90060facdfec12365db5c0ec0c868e939c681d81ff974b40d42699fa1ba1325f
BLAKE2b-256 checksum
How to use checksums
a7337f02f0c84373e153af772d72dc38247183ae6c1fb5cdc71043be12843961
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.6

Release files / configops-0.2.3-py3-none-any.whl

Download URL configops-0.2.3-py3-none-any.whl
Size 28.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13abfc2f95557f5d4b4c6dccf2da1bf2f2ef35e4e9e39ed7c3a35b9d8f0f5848
BLAKE2b-256 checksum
How to use checksums
14b0923cec811bb1427d68c2cc30ce52663da5c742d294a530d6384035d3ef86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page