futoin-cid


Namefutoin-cid JSON
Version 0.9.0 PyPI version JSON
download
home_pagehttps://github.com/futoin/cid-tool
SummaryFutoIn Continuous Integration & Delivery Tool
upload_time2023-03-27 03:25:51
maintainer
docs_urlNone
authorAndrey Galkin
requires_python>=3.3
licenseApache 2.0
keywords php ruby node nodejs npm gem rvm nvm grunt gulp bower puppet build deploy futoin cmake make gradle maven java composer bundler
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
CID - FutoIn Continuous Integration & Delivery Tool
==============================================================================

Intro
-----

There are many continuous integration & delivery tools, but they are primarily
targeted at own infrastructure. The demand for a new meta-tool is to merge
many operations of different technologies like npm, composer, bundler, nvm,
rvm, php-build and others under a single tool for runtime setup, project
development, build, deployment and running.

**Please use official documentation at https://futoin.org/docs/cid/**

Features
~~~~~~~~

* Single tool for development, testing and production
* Intelligent automation of human-like behavior
* Automatic detection & setup of all tool dependencies
* Resource limit auto-detection & distribution
* Multiple entry points per project
* Rolling deployments with zero downtime
* Container-friendly
* Technology-neutral
* Easily extendable & portable
* Fine tune of all aspects
* Easy integration with provisioning systems with centralized tool setup

Supported technologies & tools (so far):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*Note: please use* **cid tool list** *and* **cid tool describe $tool** *for details.*

* **cmake**
* **docker**

  - **docker-compose**

* **erlang**

  - **elixir**
  - **mix**
  - **phoenix**

* **flyway**
* **go**

  - **gvm**
    
* **java** for runtime (uses Zulu JDK unless overridden)

  - **ant**
  - **gradle**
  - **jdk** for development (uses Zulu JDK unless overridden)
  - **maven**
  - **sdkman** for SDK management (besides JRE & JDK)

* **jfrog** - JFrog CLI
    
* **make**
* **liquibase**
* **nginx** - true web server for development, testing & production
* **node**

  - **npm**
  - **bower**
  - **grunt**
  - **gulp**
  - **nvm** (implicit)
  - **yarn** - uses npm for own install, but disables one for processing
  - **webpack**
    
* **php** - system, php-build supported and binary builds (Sury, SCL)

  - **composer**
  - **php-build** (implicit)
    
* **python** - system 2 & 3

  - **virtualenv**, venv is ignored due to issues with *ensurepip* package
  - **pip**
  - **twine** - as limited RMS tool
  - **uwsgi** - to run application behind nginx (or other web server)
    
* **ruby** - system, rvm supported and binary builds (Brightbox, SCL)

  - **gem**
  - **bundler**
  - **rvm** (implicit)
  - **puma** - to run application behind nginx (or other web server)
    
* **rust**

  - **rustup**
  - **cargo**
    
* **scala**

  - **sbt** - Simple Build Tools for Scala


Supported Version Control Systems(VCS):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* **Git**
* **Mercurial**
* **Subversion**


Supported Release Management Systems (RMS):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- **archiva** - supporting non-Maven layout through WebDAV.

  - Always tested in standard cycle.

- **artifactory** - only Pro version as OSS is very limited for automation.

  - NOT tested in standard test cycle as JFrog did not provide license for development.

- **aws** - S3 for RMS, and the AWS CLI tool in general

- **nexus** - only v2 as v3 lacks complete REST API yet.

  - Always tested in standard cycle.

- **scp** - SSH-based secure copy.

  - Always tested in standard cycle.

- **svn** - Subversion is quite suitable for Production release builds,
  but please **avoid using it for snapshots**.
  
  - Always tested in standard cycle.

- **twine** - Upload only to Python Package Index.

  - Promotion between repos is not supported.

- Not implemented, but planned:

  - Nexus v3 - after sane REST API is implemented.

Tested on the following OSes:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* **AlpineLinux**

  - There are known incompatibilities with glibc-based binaries.

* **ArchLinux**

  - latest
    
* **CentOS**

  - **7**
    
* **Debian**

  - **8 - Jessie**
  - **9 - Stretch**
    
* **Fedora**

  - **25**
  
* **Gentoo**

  - Well... CID does support emerge, but you are on your own here ;)
    Not included in standard test cycle.
    
* **macOS**

  - **Sierra**
    
* **OpenSUSE**

  - **42.2 Leap**
  - There are known issues with some tools due to lack of community support.
    
* **Oracle Linux (OL)**

  - **7**
    
* **RedHat Enterprise Linux (RHEL)**

  - **7**

* **SUSE Linux Enterprise Server (SLES)**

  - **12**
  - *Note: only occasionally tested due to lack of suitable license*

* **Ubuntu**

  - **14.04 LTS - Trusty**
  - **16.04 LTS - Xenial**
  - **17.04 - Zesty**
    
* **Other Linux**

  - it should work without issues, if system packages are installed manually.

Setup
-----

**cid** is written in commonly available Python language supporting both 
Python versions 2.7 and 3+.

Run the following: ::

    pip install futoin-cid

If pip is not available then it's strongly suggested to install one first: ::

    easy_install pip

For best user experience, it's suggested to allow system package installation (only)
through sudo without password. It should minimize impact on security.

A convenient OS-agnostic way is to do it this way: ::

    cid sudoers | sudo tee -a /etc/sudoers

One obvious drawback is management of package trusted signing keys. It can be disabled.
Then please run the following command instead: ::

    cid sudoers --skip-key-management | sudo tee -a /etc/sudoers

As alternative, you can set :code:`export CID_INTERACTIVE_SUDO=1` environment variable
to run :code:`sudo` in interactive mode. It is disabled by default to avoid hanging
in unattended use.

Another production approach is create a special user account e.g. "futoin" which
has sudo capabilities and allow all other users to sudo-run a special callback file
configured through :code:`.env.externalSetup` option in global /etc/futoin/futoin.json.
Callback example: https://github.com/codingfuture/puppet-cfweb/blob/master/files/cf_cid_callback.sh


Development
-----------

The tool has reached its major milestone for Continuous Delivery case and use at all
stages: local development env, staging and production.

A reference secure integration into provisioning system can be found here: https://github.com/codingfuture/puppet-cfweb

There is a strong concept and several evolutions passed across years. Therere still major milestones planned. The tool can be extended with additional technology support either through custom plugins
or directly in main source tree.

Notes for contributing:

1. :code:`./bin/cid run autopep8` - for code auto-formatting
2. :code:`./bin/cid check` - for static analysis
3. :code:`./tests/run_vagrant_all.sh [optional filters]` - to make sure nothing is broken

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/futoin/cid-tool",
    "name": "futoin-cid",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.3",
    "maintainer_email": "",
    "keywords": "php ruby node nodejs npm gem rvm nvm grunt gulp bower  puppet build deploy futoin cmake make gradle maven java composer bundler",
    "author": "Andrey Galkin",
    "author_email": "andrey@futoin.org",
    "download_url": "https://files.pythonhosted.org/packages/64/cd/b9d7c1f024563efc6f5ea98db6814bc7704d712512ca4812b4c5719663e0/futoin-cid-0.9.0.tar.gz",
    "platform": null,
    "description": "\nCID - FutoIn Continuous Integration & Delivery Tool\n==============================================================================\n\nIntro\n-----\n\nThere are many continuous integration & delivery tools, but they are primarily\ntargeted at own infrastructure. The demand for a new meta-tool is to merge\nmany operations of different technologies like npm, composer, bundler, nvm,\nrvm, php-build and others under a single tool for runtime setup, project\ndevelopment, build, deployment and running.\n\n**Please use official documentation at https://futoin.org/docs/cid/**\n\nFeatures\n~~~~~~~~\n\n* Single tool for development, testing and production\n* Intelligent automation of human-like behavior\n* Automatic detection & setup of all tool dependencies\n* Resource limit auto-detection & distribution\n* Multiple entry points per project\n* Rolling deployments with zero downtime\n* Container-friendly\n* Technology-neutral\n* Easily extendable & portable\n* Fine tune of all aspects\n* Easy integration with provisioning systems with centralized tool setup\n\nSupported technologies & tools (so far):\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n*Note: please use* **cid tool list** *and* **cid tool describe $tool** *for details.*\n\n* **cmake**\n* **docker**\n\n  - **docker-compose**\n\n* **erlang**\n\n  - **elixir**\n  - **mix**\n  - **phoenix**\n\n* **flyway**\n* **go**\n\n  - **gvm**\n    \n* **java** for runtime (uses Zulu JDK unless overridden)\n\n  - **ant**\n  - **gradle**\n  - **jdk** for development (uses Zulu JDK unless overridden)\n  - **maven**\n  - **sdkman** for SDK management (besides JRE & JDK)\n\n* **jfrog** - JFrog CLI\n    \n* **make**\n* **liquibase**\n* **nginx** - true web server for development, testing & production\n* **node**\n\n  - **npm**\n  - **bower**\n  - **grunt**\n  - **gulp**\n  - **nvm** (implicit)\n  - **yarn** - uses npm for own install, but disables one for processing\n  - **webpack**\n    \n* **php** - system, php-build supported and binary builds (Sury, SCL)\n\n  - **composer**\n  - **php-build** (implicit)\n    \n* **python** - system 2 & 3\n\n  - **virtualenv**, venv is ignored due to issues with *ensurepip* package\n  - **pip**\n  - **twine** - as limited RMS tool\n  - **uwsgi** - to run application behind nginx (or other web server)\n    \n* **ruby** - system, rvm supported and binary builds (Brightbox, SCL)\n\n  - **gem**\n  - **bundler**\n  - **rvm** (implicit)\n  - **puma** - to run application behind nginx (or other web server)\n    \n* **rust**\n\n  - **rustup**\n  - **cargo**\n    \n* **scala**\n\n  - **sbt** - Simple Build Tools for Scala\n\n\nSupported Version Control Systems(VCS):\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n* **Git**\n* **Mercurial**\n* **Subversion**\n\n\nSupported Release Management Systems (RMS):\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n- **archiva** - supporting non-Maven layout through WebDAV.\n\n  - Always tested in standard cycle.\n\n- **artifactory** - only Pro version as OSS is very limited for automation.\n\n  - NOT tested in standard test cycle as JFrog did not provide license for development.\n\n- **aws** - S3 for RMS, and the AWS CLI tool in general\n\n- **nexus** - only v2 as v3 lacks complete REST API yet.\n\n  - Always tested in standard cycle.\n\n- **scp** - SSH-based secure copy.\n\n  - Always tested in standard cycle.\n\n- **svn** - Subversion is quite suitable for Production release builds,\n  but please **avoid using it for snapshots**.\n  \n  - Always tested in standard cycle.\n\n- **twine** - Upload only to Python Package Index.\n\n  - Promotion between repos is not supported.\n\n- Not implemented, but planned:\n\n  - Nexus v3 - after sane REST API is implemented.\n\nTested on the following OSes:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n* **AlpineLinux**\n\n  - There are known incompatibilities with glibc-based binaries.\n\n* **ArchLinux**\n\n  - latest\n    \n* **CentOS**\n\n  - **7**\n    \n* **Debian**\n\n  - **8 - Jessie**\n  - **9 - Stretch**\n    \n* **Fedora**\n\n  - **25**\n  \n* **Gentoo**\n\n  - Well... CID does support emerge, but you are on your own here ;)\n    Not included in standard test cycle.\n    \n* **macOS**\n\n  - **Sierra**\n    \n* **OpenSUSE**\n\n  - **42.2 Leap**\n  - There are known issues with some tools due to lack of community support.\n    \n* **Oracle Linux (OL)**\n\n  - **7**\n    \n* **RedHat Enterprise Linux (RHEL)**\n\n  - **7**\n\n* **SUSE Linux Enterprise Server (SLES)**\n\n  - **12**\n  - *Note: only occasionally tested due to lack of suitable license*\n\n* **Ubuntu**\n\n  - **14.04 LTS - Trusty**\n  - **16.04 LTS - Xenial**\n  - **17.04 - Zesty**\n    \n* **Other Linux**\n\n  - it should work without issues, if system packages are installed manually.\n\nSetup\n-----\n\n**cid** is written in commonly available Python language supporting both \nPython versions 2.7 and 3+.\n\nRun the following: ::\n\n    pip install futoin-cid\n\nIf pip is not available then it's strongly suggested to install one first: ::\n\n    easy_install pip\n\nFor best user experience, it's suggested to allow system package installation (only)\nthrough sudo without password. It should minimize impact on security.\n\nA convenient OS-agnostic way is to do it this way: ::\n\n    cid sudoers | sudo tee -a /etc/sudoers\n\nOne obvious drawback is management of package trusted signing keys. It can be disabled.\nThen please run the following command instead: ::\n\n    cid sudoers --skip-key-management | sudo tee -a /etc/sudoers\n\nAs alternative, you can set :code:`export CID_INTERACTIVE_SUDO=1` environment variable\nto run :code:`sudo` in interactive mode. It is disabled by default to avoid hanging\nin unattended use.\n\nAnother production approach is create a special user account e.g. \"futoin\" which\nhas sudo capabilities and allow all other users to sudo-run a special callback file\nconfigured through :code:`.env.externalSetup` option in global /etc/futoin/futoin.json.\nCallback example: https://github.com/codingfuture/puppet-cfweb/blob/master/files/cf_cid_callback.sh\n\n\nDevelopment\n-----------\n\nThe tool has reached its major milestone for Continuous Delivery case and use at all\nstages: local development env, staging and production.\n\nA reference secure integration into provisioning system can be found here: https://github.com/codingfuture/puppet-cfweb\n\nThere is a strong concept and several evolutions passed across years. Therere still major milestones planned. The tool can be extended with additional technology support either through custom plugins\nor directly in main source tree.\n\nNotes for contributing:\n\n1. :code:`./bin/cid run autopep8` - for code auto-formatting\n2. :code:`./bin/cid check` - for static analysis\n3. :code:`./tests/run_vagrant_all.sh [optional filters]` - to make sure nothing is broken\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "FutoIn Continuous Integration & Delivery Tool",
    "version": "0.9.0",
    "split_keywords": [
        "php",
        "ruby",
        "node",
        "nodejs",
        "npm",
        "gem",
        "rvm",
        "nvm",
        "grunt",
        "gulp",
        "bower",
        "",
        "puppet",
        "build",
        "deploy",
        "futoin",
        "cmake",
        "make",
        "gradle",
        "maven",
        "java",
        "composer",
        "bundler"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cac24fb19a11235cc554c70ba469d701e5be1bea5f884006aacf01a9bd3c5860",
                "md5": "11fb5c8b5f7e76e27ebe21b5a333ff05",
                "sha256": "a370e91b53dc20da8747f17c03ba5ef08136ec6fe23744aaa91d1082e44968f6"
            },
            "downloads": -1,
            "filename": "futoin_cid-0.9.0-py2.py3-none-any.whl",
            "has_sig": true,
            "md5_digest": "11fb5c8b5f7e76e27ebe21b5a333ff05",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.3",
            "size": 233310,
            "upload_time": "2023-03-27T03:25:47",
            "upload_time_iso_8601": "2023-03-27T03:25:47.110313Z",
            "url": "https://files.pythonhosted.org/packages/ca/c2/4fb19a11235cc554c70ba469d701e5be1bea5f884006aacf01a9bd3c5860/futoin_cid-0.9.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "64cdb9d7c1f024563efc6f5ea98db6814bc7704d712512ca4812b4c5719663e0",
                "md5": "77f71425325038054fdf6911ab4de9bd",
                "sha256": "112666ef736da190b2b9ac67d7301d1cd8bbe1fe706fc5e52bc411e1ad19618f"
            },
            "downloads": -1,
            "filename": "futoin-cid-0.9.0.tar.gz",
            "has_sig": true,
            "md5_digest": "77f71425325038054fdf6911ab4de9bd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.3",
            "size": 142415,
            "upload_time": "2023-03-27T03:25:51",
            "upload_time_iso_8601": "2023-03-27T03:25:51.493285Z",
            "url": "https://files.pythonhosted.org/packages/64/cd/b9d7c1f024563efc6f5ea98db6814bc7704d712512ca4812b4c5719663e0/futoin-cid-0.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-27 03:25:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "futoin",
    "github_project": "cid-tool",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "futoin-cid"
}
        
Elapsed time: 0.09901s