Mesos/Marathon sample

Summary

This project contains everything you need to spin up a Mesos/Marathon service and provides a RESTful API to Start/Stop useless processes as well as listing one/all running processes.

Prerequisites

To run this demo you will need the following installed:

Getting started

Clone this repository to your computer

git clone https://github.com/nisbus/marathon-sample.git

After the clone is completed open the directory in a terminal and run the command according to your platform

Linux

make

Windows

docker-compose build && docker-compose up

You should now be able to open the REST API in a browser at http://localhost:5000
The Marathon UI is available at http://localhost:8080

Time tracking

The following is a list of tasks performed to create this solution and the time taken on each task.

  • Read up on Mesos/Marathon (I had never used them before) - 1h
  • Get Mesos/Marathon running on my machine via Docker - 15m
  • Create the service.py rest service and test the API against the Marathon API- 1h
  • Add swagger to the REST service and document the methods - 1h
  • Create makefile and README - 30m
  • Get the code to github - 10m