Skip to content

Instantly share code, notes, and snippets.

@rastaman
Last active December 10, 2015 10:58
Show Gist options
  • Select an option

  • Save rastaman/62287e176131d71d44cd to your computer and use it in GitHub Desktop.

Select an option

Save rastaman/62287e176131d71d44cd to your computer and use it in GitHub Desktop.
A script to install mesos and start mesos-slave on a ARM C1 node from cloud.online.net . Packaged and tested on the Docker instant app.
apt-get install -y libsvn-dev wget
wget http://www.effervens.com/experimental/mesos/mesos_0.22.0_armhf.deb
dpkg -i ./mesos_0.22.0_armhf.deb
echo /opt/mesos/lib > /etc/ld.so.conf.d/mesos.conf
ldconfig
export MESOS_master=zk://ZK1:2181,ZK2:2181,ZK3:2181/mesos
# Other options you're likely to want to set:
export MESOS_log_dir=/var/log/mesos
export MESOS_work_dir=/var/run/mesos
export MESOS_isolation=cgroups
export HOST_IP=$(/sbin/ifconfig eth0 | awk '/inet /{print $2}' | sed -e 's/addr://')
/opt/mesos/sbin/mesos-slave --ip=$HOST_IP --containerizers=docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment