Git Product home page Git Product logo

cronus-agent's Introduction

CRONUSAGENT

An agent automation framework

===========

Set up Dev Enivronment

Setting up users and permissions

add users and groups    
sudo groupadd -g 61000 app
sudo useradd -u 78389 cronus -g app
sudo useradd -u 78402 cronusapp -g app
sudo sed -i '/cronus/d' /etc/sudoers
sudo echo '_your_local_user  ALL = (ALL) NOPASSWD: ALL' >>/etc/sudoers
sudo echo 'cronus  ALL = (ALL) NOPASSWD: ALL' >>/etc/sudoers
sudo echo 'cronusapp  ALL = (ALL) NOPASSWD: ALL' >>/etc/sudoers

On Ubuntu

sudo apt-get install gcc
sudo apt-get install swig
sudo apt-get install ant1.8
sudo apt-get install python-setuptools
sudo apt-get install git
sudo easy_install nested-dict
(pyopenssl dependency)
sudo apt-get install libffi-dev 
sudo apt-get install curl
(optional: install python2.6 if system does not come with it installed)
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.6 python2.6-dev
(optional: change system default python to python2.6)
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.6 /usr/bin/python
python --version

###Build Agent

build python package

cd ~/proj/python-package
ant depend.resolve package
ant -Dbuildnum=1 depend.resolve package (build with options)

python package is in /target/dist as a cronus package

build agent package

cd ~/proj/agent
ant depend.resolve package
ant -Dbuildnum=1 -Dnotest=true -Dnopylint=true depend.resolve package (build with options)

agent and agent config package are in /target/dist as cronus packages

###Deploy Agent Deploy agent locally

cp agent-{pkg_ver}.unix.cronus /proj/agent/scripts/agent_install
cp agent_config-{pkg_ver}.unix.cronus /proj/agent/scripts/agent_install
cp python_package-{pypkg_ver}.unix.cronus /proj/agent/scripts/agent_install
cat agent_install | pkg_ver={pkg_ver} pypkg_ver={pypkg_ver} target_dir={dir} bash

Deploy agent remotely

curl -sS 'https://raw.githubusercontent.com/yubin154/cronusagent/master/agent/scripts/agent_install/install_agent' | sudo pkgver={agent_version} target_dir={install_dir} bash

cronus-agent's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.