You can use this build framework to create Apache Mesos RPMs.
The default RPM file is targeted for CentOS and will help you deploy:
- your masters and slaves daemons if working with a cluster.
- your local daemon if working with a single node.
- the mesos cli if you want to build or interact with its mesos cli tools.
- the mesos development headers if you want to build mesos frameworks.
The spec file has dependencies that can be fulfilled using the EPEL Repo.
Example of running it.
export JDK_HOME="/usr/java/jdk1.7.0_51"
export JAVA_HOME="/usr/java/jdk1.7.0_51"
BUILD_NUMBER="${BUILD_NUMBER:-0}" ./mesos-build.sh --qualifier=glabs_h --hashq --buildnumq --command=mock-flow
As an example the build will produce the following RPMS
Mesos Command Line Utility
Mesos Master as a Service.
/sbin/service mesos-master status
Mesos Slave as a Service.
/sbin/service mesos-slave status
Mesos Local as a Service.
/sbin/service mesos-slave status
Headers and static libraries for Mesos
This package contains the libraries and header files needed for developing with mesos.
Note that the configuration files mentioned have a wild card that '*' will have to be replaced either with 'master', 'slave' or 'local' depending on the daemon that is affecting.
Example of /etc/sysconfig/mesos-master
export JAVA_HOME="/usr/java/jdk1.7.0_51"
export MESOS_USER=root
Example of /etc/mesos/mesos-master
--cluster=Verizion_FiOS_Pineseed
--ip=0.0.0.0
--port=5050
--zk=zk://zk1-verizon-fios-pineseed.guavuslabs.com:2181,zk2-verizon-fios-pineseed.guavuslabs.com:2181,zk3-verizon-fios-pineseed.guavuslabs.com:2181/mesos
--log_dir=/data/var/log/mesos
Example of /etc/mesos/mesos-slave
--frameworks_home=/var/lib/mesos/frameworks
--ip=0.0.0.0
--master=zk://zk1-verizon-fios-pineseed.guavuslabs.com:2181,zk2-verizon-fios-pineseed.guavuslabs.com:2181,zk3-verizon-fios-pineseed.guavuslabs.com:2181/mesos
--port=5051
--recover=reconnect
--work_dir=/tmp/mesos
--log_dir=/data/var/log/mesos
mesos-0.19.0-glabs_h.b130.6e7a291.el6.src.rpm
mesos-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
mesos-cli-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
mesos-local-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
mesos-master-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
mesos-slave-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
mesos-debuginfo-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
mesos-devel-0.19.0-glabs_h.b130.6e7a291.el6.x86_64.rpm
NOTE: It is a work in progress, if you have suggestions feel free to open an issue/enhancement request.