Skip to content

AmazeCom/sdc-cnapi

 
 

Repository files navigation

sdc-cnapi

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.

Development

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.

Testing

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

About

SDC Compute Node API -- deals with communication to and management of compute nodes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.2%
  • Shell 1.9%
  • Makefile 0.9%