Cabric,a deploy tool for CentOS,based on Fabric.
Note
Cabric was stopped add new feature at 2017-12-31.
We focus on docker and kubernetes now. If you use Cabric,we suggest you use python2.7+, because Fabric only works on python2.
Although we use Fabric3 when system detect python3.but we haven't test it.
We are planing a new project tara(not ready to public) to play with Docker,K8s and make your deploy more easier.
Installation
pip install cabric
Initial
cd /tmp cab touch nextoa/cabric-kickstart cabric-demo
Edit hosts
cd /tmp/cabric-demo sed -i -e "s/example.com/<YOUR SERVER IP>/g" config/fabric/beta.conf
Run
cab install --env=beta # install depends packages cab config --env=beta --restart=nginx # config server and restart nginx services
Work With Fabric Task
fab ez:beta hello_world
cab check # [plan-feature] check current environment
cab touch # touch a project from template repository.
cab install # install depends on target server.
cab config # config target server.
cab deploy # deploy project.
cab compile # compile python project.
cab clean # clean python compiled files.
cab mini # minify python project.
cab render # render project which create by `cab touch`
cab update # [plan-feature] upgrade target server.
cab package # a short way for python package.
cab hardline # batch way to execute fabric & cabric command
cab compose # work with remote docker
Q: When I use cabric, I got this error:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/io.c(453) [sender=2.6.9]
A: your remote server may not install rsync. please install first. if you still seem this error, please upgrade rsync to newer version.
For more document. please visit Cabric cookbook