/cleverdb-agent

This is the user agent to be installed on customer's end

Primary LanguagePython

cleverdb-agent Build Status

This user agent will be installed on customer's machine.

Requirements and Support

Python 2.6 and up
rsync
OpenSSH client (ssh command)

Supported linux distributives listed in section below, but it just mean, that other distributives/OSes need manual setup.

Supported distributives

We provide packages for following linux distributives:

Ubuntu (Precise/Trusty)
Debian (Squeeze/Wheezy/Jessie)
CentOS (5.x/6.x/7.x)
RHEL   (same as CentOS))
Docker (coming soon)

CentOS/RHEL 5.x packages can require packages from EPEL

Install packages for development

bin/install

Testing

bin/test

Bulding Debian (.deb) Package

# turn on Ubuntu vagrant box and go inside it
vagrant up ubuntu && vagrant ssh ubuntu

# cd into the agent directory
cd cleverdb-agent/

# bump up version inside Python script as well
cleverdb/version.py

# prepare package version for release
bin/release "Some text changes here" 

# go inside the cleverdb-agent directory and build
bin/build	

Bulding RedHat (.rpm) Package

# turn on CentOS vagrant box and go inside it
vagrant up centos && vagrant ssh ubuntu

# cd into the agent directory
cd cleverdb-agent/

# bump up version inside Python script
cleverdb/version.py

# prepare package version for release
bin/release "Some text changes here"

# go inside the cleverdb-agent directory and build
bin/build

Deploy Packages

# deploy package to staging (unstable) repo
bin/deploy

# deploy package to production (stable) repo
bin/deploy stable

One Step Installation

CD_ENV=stable CD_CONNECT_HOST=https://connect.cleverdb.io CD_API_KEY=sample_api_key CD_DB_ID=sample_db_id bash -c "$(curl -L https://raw.githubusercontent.com/sendgridlabs/cleverdb-agent/master/bin/install_agent.sh)"