Skip to content

Instantly share code, notes, and snippets.

@janisz
Last active December 5, 2015 13:59
Show Gist options
  • Save janisz/ce36ad51ee5fb6911786 to your computer and use it in GitHub Desktop.
Save janisz/ce36ad51ee5fb6911786 to your computer and use it in GitHub Desktop.
Vagrantfile for Mesos and Marathon
1. Install [Vegrant](https://www.vagrantup.com/downloads.html)
2. Download Vagrantfile `wget https://gist.githubusercontent.com/janisz/ce36ad51ee5fb6911786/raw/0503492c7226d95e8b5f801f4621982105578de8/Vagrantfile`
3. `vagrant up`
## Starter links
* http://www.wired.com/2013/03/google-borg-twitter-mesos/
* https://manning-content.s3.amazonaws.com/download/2/c79863e-1021-4274-abcc-63b748548f24/Mesos_MEAP_ch1.pdf
* http://mesos.apache.org/documentation/latest/
## PaaS
* https://docs.mesosphere.com/
* http://engineeringblog.yelp.com/2015/11/introducing-paasta-an-open-platform-as-a-service.html
* https://www.joyent.com/blog/mesos-by-the-pound
* https://www.openshift.com/
## Frameworks
* http://mesos.apache.org/documentation/latest/frameworks/
## Misc
* https://docs.mesosphere.com/
* https://www.youtube.com/channel/UCrumFK609iafY-fHBjMUt7g/videos
* http://mesosphere.github.io/presentations/
* https://www.cs.berkeley.edu/~alig/papers/mesos.pdf
* https://www.cs.berkeley.edu/~alig/papers/drf.pdf
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "10.10.10.10"
config.vm.post_up_message = """
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
(_) _ _ (_)(_)(_)(_)(_)(_)_(_)(_)(_)(_)_ _(_)(_)(_)(_)_ _(_)(_)(_)(_)_
(_)(_) (_)(_)(_) (_) (_)(_) (_)(_) (_)
(_) (_)_(_) (_)(_) _ _ (_)_ _ _ _ (_) (_)(_)_ _ _ _
(_) (_) (_)(_)(_)(_) (_)(_)(_)(_)_ (_) (_) (_)(_)(_)(_)_
(_) (_)(_) _ (_)(_) (_) _ (_)
(_) (_)(_) _ _ _ _(_)_ _ _ _(_)(_)_ _ _ _(_)(_)_ _ _ _(_)
(_) (_)(_)(_)(_)(_)(_) (_)(_)(_)(_) (_)(_)(_)(_) (_)(_)(_)(_)
* Mesos: http://10.10.10.10:5050
* Marathon: http://10.10.10.10:8080
"""
config.vm.provision "shell", inline: <<-SHELL
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y
python-software-properties software-properties-common
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | \
sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get -y update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-get install -qq oracle-java8-set-default
sudo apt-get -qq install mesos zookeeper marathon
echo "10.10.10.10" > /etc/mesos-slave/hostname
sudo service zookeeper restart
service mesos-slave restart
service mesos-master restart
service marathon restart
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment