Last active
August 29, 2015 14:02
-
-
Save three18ti/fdfeb1c6950481414591 to your computer and use it in GitHub Desktop.
Calamari installation (for a dev environment)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Install all packages, including nodejs and npm (I always install build essential on dev machines, I've included it here for accuracy) | |
2) install grunt and compass | |
3) set environment variables | |
4) checkout calamari to /opt/workspace | |
5) create virtualenv | |
6) activate virtualenv (very important step I was missing on my first run through, it's implied but I'm not well versed in Python so it was definitely an "Ah ha!" moment) | |
7) use pip to install dependencies, the `pip install -r requirements/debian/requirements.force.txt` tends to complete with an already satisfied." but I continue to run it anyway. | |
8) Checkout calamari-clients to alternate directory | |
9) run make dist on calamari-clients directory | |
10) copy resulting contents to your webapp/contents directory (`make dist`, `make build-real`, or `make ui`, which is correct? there's a tarball that's involved somehow too... what's the deal with that?) | |
11) link modules to venv | |
12) Create Directories | |
13) run configure.py | |
14) configure postgres | |
15) initialize cthulhu, answer any questions | |
16) run supervisord | |
1) | |
apt-get install build-essential python-virtualenv git python-dev swig libzmq-dev g++ postgresql-9.1 postgresql-server-dev-9.1 nodejs npm | |
2) | |
npm install -g grunt-cli | |
npm install -g bower --config.interactive=false # not sure if this is actually required | |
/opt/chef/embedded/bin/gem install compass | |
3) | |
export WORKSPACE=/opt | |
export VENV_NAME=calamari_venv | |
export VIRTUAL_ENV=${WORKSPACE}/calamari/${VENV_NAME} | |
export PIP_DOWNLOAD_CACHE=/tmp/pip_cache | |
4) | |
cd $WORKSPACE | |
git clone https://github.com/ceph/calamari.git | |
5) | |
cd $VIRTUAL_ENV/.. | |
virtualenv --system-site-packages ${VENV_NAME} | |
6) | |
source ${VIRTUAL_ENV}/bin/activate | |
7) | |
pip install -r requirements/{debian,rh}/requirements.txt; \ | |
pip install -r requirements/{debian,rh}/requirements.force.txt; \ | |
pip install carbon --install-option="--prefix=$VIRTUAL_ENV" --install-option="--install-lib=$VIRTUAL_ENV/lib/python2.7/site-packages";\ | |
pip install git+https://github.com/ceph/graphite-web.git@calamari --install-option="--prefix=$VIRTUAL_ENV" --install-option="--install-lib=$VIRTUAL_ENV/lib/python2.7/site-packages" | |
8) | |
cd ${VIRTUAL_ENV}/../../; git checkout https://github.com/ceph/calamari-clients.git | |
9) | |
cd ${VIRTUAL_ENV}/../../calamari-clients; make build-real | |
10) | |
SOURCE_PATH=${VIRTUAL_ENV}/../../calamari-clients | |
INSTALL_PATH=${VIRTUAL_ENV}/..//webapp/content | |
for unit in dashboard admin login manage | |
do | |
rsync -rahP ${SOURCE_PATH}/${unit}/dist/ ${INSTALL_PATH}/${unit} | |
done | |
11) | |
pushd calamari-common ; python setup.py develop ; popd | |
pushd rest-api ; python setup.py develop ; popd | |
pushd cthulhu ; python setup.py develop ; popd | |
pushd minion-sim ; python setup.py develop ; popd | |
pushd calamari-web ; python setup.py develop ; popd | |
12) | |
mkdir -p ${VIRTUAL_ENV}/storage/log/webapp | |
mkdir -p ${VIRTUAL_ENV}/storage | |
13) | |
dev/configure.py | |
14) | |
salt-call --local state.template salt/local/postgres.sls | |
14) | |
CALAMARI_CONFIG=dev/calamari.conf calamari-ctl initialize | |
15) | |
supervisord -n -c dev/supervisord.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the operating system?What is the npm and node version?