Playa Mesos helps you quickly create Apache Mesos test environments. This project relies on VirtualBox, Vagrant, and an Ubuntu box image which has Mesos pre-installed. The box image is downloadable for your convenience, but it can also be built from source using Packer.
- VirtualBox 4.2+
- Vagrant 1.3+
- git (command line tool)
- Packer 0.5+ (optional)
-
Clone this repository
git clone https://github.com/mesosphere/playa-mesos.git
cd playa-mesos
- Make sure tests pass
bin/test
- Change to the
ubuntu_13.04
profile directory
cd profiles/ubuntu_13.04
- Start the VM
vagrant up
-
Connect to the Mesos Web UI on 10.141.141.10:5050
-
SSH to the VM
vagrant ssh
ps -eaf | grep mesos
exit
- Halt the VM
vagrant halt
- Destroy the VM
vagrant destroy
-
Install Packer
Installing Packer is not completely automatic. Once you have downloaded and extracted Packer, you must update your search path so that the
packer
executable can be found.
# EXAMPLE - PACKER LOCATION MUST BE ADJUSTED
export PATH=$PATH:/path/where/i/extracted/packer/archive/
- Change to the
ubuntu_13.04
profile directory
cd profiles/ubuntu_13.04
- Destroy any existing VM
vagrant destroy
- Build the Vagrant box image
./build
- Start the VM using the local box image
vagrant up
The build is controlled with the following files:
For additional information on customizing the build, or creating a new profile, see Configuration and the Packer Documentation.
- vagrant-mesos: Vagrant provisiong with multinode and EC2 support