dmerkushov / nanoservices

Apache License 2.0
3 stars 0 forks source link

nanoservices

THIS REPOSITORY WILL NOT BE UPDATED. Nanoservices development moved to https://github.com/dmerkushov/nanoservices2

Documentation

Nanoservices framework

How to build

You'll need: cmake (minimum version is 3.0), make, libzookeeper-mt-dev, running local instance of zookeeper and a C++11 compiler (the framework is tested with gcc 6+)

git clone git@github.com:dmerkushov/nanoservices.git`
cd nanoservices/
mkdir build
cd build/
cmake ..
cmake --build .
cd ../..

For build without dependence from zookeeper

cmake -DZOO=OFF ..

After a successful build and all the tests passing the resulting shared object will be nanoservices/build/ns-skeleton/libns-skeleton.so

Header files to include to use the library will be in nanoservices/ns-skeleton/include/

A successful build will also generate some tools in nanoservices/build/misc/ folder. By now, these are tools for configuring nanoservices (ns-configurator) and shutdowning a started nanoservice remotely (ns-shutdown). More info

It is highly recommended to use the supplied tools to configure nanoservices, as different configuration source strategies may be applied by the nanoservice hosting teams.

Build debian packages

To build debian packages from built sources

cd build/
cpack