You will need cmake, json-c and libevent to build ubervisor.
On ubuntu, apt-get install libevent-dev libjson0-dev cmake
.
Use cmake . && make
to build.
Building the documentation requires python and sphinx. If cmake can
find sphinx-build, man pages can be build with make man
. The html
documentation is build with make htmldoc
(or online here).
-DCMAKE_C_COMPILER:string=clang
(force compiler)-DCMAKE_INSTALL_PREFIX:string=/usr/local
(install prefix)-DCMAKE_BUILD_TYPE=Debug
(set build type)
To do a clang --analyze
build, use -DCLANG_ANALYZE:bool=true
.
sudo cp scripts/ubervisor_debian /etc/init.d/ubervisor
sudo update-rc.d -f ubervisor defaults
Environment variables to configure the server are read from
/etc/ubervisor/ubervisor_server.conf
(see ubervisor-server
man page).
sudo cp scripts/ubervisor.service /etc/systemd/system/
sudo systemctl enable ubervisor.service
The file /etc/ubervisor/ubervisor_server.conf
has to exist. The
file is read by systemd and should set environment variables to
configure the server (see ubervisor-server man page).
BSD 2-clause license