Skip to main content

A devops config tool

Project description

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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

configops-0.2.1.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

configops-0.2.1-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file configops-0.2.1.tar.gz.

File metadata

  • Download URL: configops-0.2.1.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for configops-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2de13ed8fa0357c832dcfe133a8a3b51c20115b9eb619d4a630d28dd2b1c0ecc
MD5 bcbc3fc44b7bdc9a975464a59afcc0fe
BLAKE2b-256 6d55bce954d0e5cc737489c5f7c5324f81e05ccf09ea0bff79dd234f9415b9a7

See more details on using hashes here.

File details

Details for the file configops-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: configops-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for configops-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3be1cc1535740c15bf332a8f3e8a150cec7bcad4bf938ecbccfdc765c85b40f1
MD5 40b313aa03c8d4c1d3caf61b99b37e3c
BLAKE2b-256 bd7a7f77e25d2285924839736cd41127619e33838b01932b14b04eccd712c65a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page