This repository is part of the Joyent SmartDataCenter project (SDC). For contribution guidelines, issues, and general documentation, visit the main SDC project page.
CNAPI is responsible for maintaining the states and life-cycle stages of a compute node. It communicates with compute nodes for the purpose of creating and destroying tasks, initiating tasks, etc.
To run the API server:
git clone git@github.com:joyent/sdc-cnapi.git
cd cnapi
git submodule update --init
make all
node bin/cnapi.js
To update the guidelines, edit "docs/index.md" and run make docs
to update "docs/index.html".
Before commiting/pushing run make prepush and, if possible, get a code
review.
make test
The CNAPI_IP environment variable specifies the URL at which to point the test suite. For example, this would test CNAPI installed on bh1-kvm6:
CNAPI_IP=10.2.206.13 make test