Skip to main content

DevOps of useful deployment and automation

Project description

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 脚本。

  1. Docker 编排工具
  2. 参考例子

Kubernetes 编排工具

与前面 Docker 编排一样,使用 pyhton 完成 Kubernetes 的编排任务。

  1. Kubernetes 编排工具
  2. 参考例子

工具列表

  1. 数据备份工具.
  2. 数据库备份脚本.
  3. 配置文件版本控制工具.
  4. 环境部署脚本 Shell.

Shell 工具箱

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 

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 (支付宝) 打赏:

https://www.netkiller.cn/home/donations.html

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

netkiller_devops-0.7.17.tar.gz (61.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netkiller_devops-0.7.17-py3-none-any.whl (81.8 kB view details)

Uploaded Python 3

File details

Details for the file netkiller_devops-0.7.17.tar.gz.

File metadata

  • Download URL: netkiller_devops-0.7.17.tar.gz
  • Upload date:
  • Size: 61.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for netkiller_devops-0.7.17.tar.gz
Algorithm Hash digest
SHA256 9f0dc0fc0551868539000596b629f96e423623cff2a6942c5132e6488a5e8fad
MD5 762e5a6d2d66a2d76f5554647272e389
BLAKE2b-256 8fd2dbcfc4b0240212302a682ac2fa5322a9af1be6660251801bdc05ae54079b

See more details on using hashes here.

File details

Details for the file netkiller_devops-0.7.17-py3-none-any.whl.

File metadata

File hashes

Hashes for netkiller_devops-0.7.17-py3-none-any.whl
Algorithm Hash digest
SHA256 da485f6503917470e684fd55829f05d1523bfd3d52637b643d680ceb83a02b4b
MD5 ab1dcca0fbe9c789d648f58e3f36a9d5
BLAKE2b-256 1e0b981872c29be3cf4316acb69cde71339a618ff1d240b2484903bdb0b49b65

See more details on using hashes here.

Supported by

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