You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by iilyak <gi...@git.apache.org> on 2018/07/26 21:34:50 UTC

[GitHub] couchdb-ci pull request #6: Allow execution of custom scripts to install pac...

GitHub user iilyak opened a pull request:

    https://github.com/apache/couchdb-ci/pull/6

    Allow execution of custom scripts to install packages

    This change adds an ability to install aditional packages useful
    for developemnt. This is done via placing additionl scripts into
    `bin/extra/` directory. The scripts are named based on package
    manager used in a given distribution:
     - `apt-*` for apt based distributions
     - `pkg-*` for FreeBSD
     - `yum-*` - for Centos
    
    The scripts are executed in alphabetical order.
    
    # Testing recommendations
    
    1. create script
        ```
        mkdir -p bin/extra
        cat << EOF > bin/extra/apt-rg.sh
        curl -LO https://github.com/BurntSushi/ripgrep/releases/download/0.8.1/ripgrep_0.8.1_amd64.deb
        sudo dpkg -i ripgrep_0.8.1_amd64.deb
        EOF
        chmod +x bin/extra/apt-rg.sh
        ```
    2. Build platform `./build.sh platform debian-stretch`
    3. Check the logs you should see following:
        ```
        Preparing to unpack ripgrep_0.8.1_amd64.deb ...
        Unpacking ripgrep (0.8.1) ...
        Setting up ripgrep (0.8.1) ...
        ```
    4. Run container 
        ```
        docker run -it couchdbdev/debian-stretch-erlang-19.3.6 bash
        ```
    5. Check that `rg` is available
        ``` 
        which rg
        /usr/local/bin/rg
        ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-ci extra-dependencies

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-ci/pull/6.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #6
    
----
commit cce4836037979c1d63463b8e62fc22a3c99e142b
Author: ILYA Khlopotov <ii...@...>
Date:   2018-07-26T21:16:28Z

    Allow execution of custom scripts to install packages
    
    This change adds an ability to install aditional packages useful
    for developemnt. This is done via placing additionl scripts into
    `bin/extra/` directory. The scripts are named based on package
    manager used in a given distribution:
     - `apt-*` for apt based distributions
     - `pkg-*` for FreeBSD
     - `yum-*` - for Centos
    
    The scripts are executed in alphabetical order.

----


---