Tiltai-example helps you quickly tryout Tiltai functionality on a single host.
It is based on Playa Mesos, which helps you quickly create Apache Mesos test environments. This project relies on VirtualBox, Vagrant, and an Ubuntu box image which has Mesos and Marathon pre-installed.
- VirtualBox 4.2+
- Vagrant 1.3+
- git (command line tool)
- Packer 0.5+ (optional)
- VMware Fusion or Workstation (optional)
- Vagrant Plugin for VMware Fusion or Workstation (optional)
-
Clone this repository
git clone https://github.com/Zogg/Tiltai-example.git
cd Tiltai-example
- Make sure tests pass
bin/test
- Start the VM
vagrant up
-
Connect to the Mesos Web UI on 10.141.141.10:5050 and the Marathon Web UI on 10.141.141.10:8080 and the Consul Web UI on 10.141.141.10:8500
-
SSH to the VM
vagrant ssh
- Launch the infrastructure
cd /vagrant/bin
./make_infra
Inspect Marathon Web UI, it should now deploy the services. Using Mesos Web UI you may inspect service logs. And using Consul Web UI you may observe the registered services and their ip/ports.
- Playing with the services
# The services are found at /vagrant/services
# Modify the source code of the service
cd /vagrant/services/feeder
vim ./src/run.py
# Rebuild docker image
./build.sh
# Restart marathon infrastructure
cd /vagrant/bin && ./restart_infra
The marathon's software-defined-infrastructure is defined at /vagrant/grouped-infra.json