DevOps Tools
OS Software Configure Managment
这是一个运维工具箱,里面包含了一系列工具集合。
Install 安装
中国镜像安装
$ pip install netkiller-devops -i https://pypi.tuna.tsinghua.edu.cn/simple
有时国内镜像同步速度慢,需要指定官方镜像才能安装最新版
$ pip install netkiller-devops --upgrade -i https://pypi.org/project
Docker 编排工具
传统 Docker compose 采用 YAML 技术,无法完成复杂的编排任务,于是我开发了一个工具,将 compose.yaml 脚本 python 化,用 python 语音编排 compose.yaml 脚本。
Kubernetes 编排工具
与前面 Docker 编排一样,使用 pyhton 完成 Kubernetes 的编排任务。
工具列表
Shell 工具箱
root@netkiller ~# docker run --rm -it --name=netkiller --entrypoint=sh netkiller-devops:latest
Ubuntu 编译安装
$ cd /usr/local/src/
$ git clone https://github.com/netkiller/devops.git
$ cd devops
$ python3 setup.py sdist
$ python3 setup.py install
CentOS 编译安装
$ cd /usr/local/src/
$ git clone https://github.com/netkiller/devops.git
$ cd devops
$ python3 setup.py sdist
$ python3 setup.py install --prefix=/srv/devops
or
python36 setup.py sdist
python36 setup.py install --prefix=/srv/devops
Deploy Pypi
$ pip install setuptools wheel twine
$ python setup.py sdist bdist_wheel
$ twine upload dist/netkiller-devops-x.x.x.tar.gz
pip install --upgrade build
python -m build
twine upload dist/netkiller_devops-0.7.21*
PATH Variable
$ cp share/profile.d/devops.sh /etc/profile.d/
or
$ cat >> /etc/profile.d/devops.sh <<'EOF'
export PATH=/srv/devops/bin:$PATH
EOF
Donations
We accept PayPal through:
https://www.paypal.me/netkiller
Wechat (微信) / Alipay (支付宝) 打赏:
Release files for netkiller-devops 0.7.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netkiller_devops-0.7.22.tar.gz | 62.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netkiller_devops-0.7.22-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 144.9 kB
Release files / netkiller_devops-0.7.22.tar.gz
| Download URL | netkiller_devops-0.7.22.tar.gz |
|---|---|
| Size | 62.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad617c2be4d99e165ccabf03a95dd66267701588e1e80848d6d3963cf8fefe1c
|
|
BLAKE2b-256 checksum How to use checksums |
3b248b2b97916128bbb5a1d6dded3d85f40db9a0732d2d509626cc28e12ddb2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / netkiller_devops-0.7.22-py3-none-any.whl
| Download URL | netkiller_devops-0.7.22-py3-none-any.whl |
|---|---|
| Size | 82.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78f0df1e5bb26c5d29b12b82f62f2135325cf8de39274df92651012c7922e2b0
|
|
BLAKE2b-256 checksum How to use checksums |
b8223d0324c8f072d6cab9f13d1f742a8701171f1183486dff341e010eb917c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|