Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

nextoa/cabric

Repository files navigation

Cabric

Cabric,a deploy tool for CentOS,based on Fabric.

Build status MIT License Support Python implementations.

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.

Quick Start

  1. Installation

    pip install cabric
  2. Initial

    cd /tmp
    cab touch nextoa/cabric-kickstart cabric-demo
  3. Edit hosts

    cd /tmp/cabric-demo
    sed -i -e "s/example.com/<YOUR SERVER IP>/g" config/fabric/beta.conf
  4. Run

    cab install --env=beta    # install depends packages
    cab config --env=beta --restart=nginx   # config server and restart nginx services
  5. Work With Fabric Task

    fab ez:beta hello_world

Features

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

FAQ

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

About

A deploy tool for CentOS, based on Fabric.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published