Spinning up your first Mantis cluster using Docker

Prerequisites

Install Docker on your local machine (if you don't already have it)

  1. Mac
  2. Windows
  3. Linux

Bootstraping your first Mantis Cluster in Docker

Download the docker-compose file

Download the docker-compose.yml to a local folder mantis

$ cd <mantis>
$ docker-compose -f docker-compose.yml up 

This starts up the following Docker containers:

  • Zookeeper
  • Mesos Master
  • Mantis Master
  • Mantis API
  • Mesos Slave and Mantis Worker run on a single container (mantisagent)
  • A simple hello world web application that sends events to Mantis
  • A simple Java application that sends events to Manits

Mantis Admin UI

The Mantis Admin UI allows you to manage your Mantis Jobs.

Open the Mantis UI in a new browser window.

Fill out the Registration form as follows

Fresh Mantis UI

  1. Name: Example
  2. Email: example@example.com
  3. Master Name: Example
  4. Mantis API URL: http://localhost:7101
  5. Mesos URL: http://localhost:5050

Click on Create

The Mantis Admin page should be pre-populated with all the Mantis examples.

Clusters

Try out Mantis Jobs

Now that you have setup a Mantis cluster locally try running some of the preconfigured Mantis samples

  1. Sine Function Sample - A simple job that generates x and y coordinates of a sine wave.

  2. Twitter Sample - Connects to a twitter stream using consumer and token keys specified and performs a streaming word count.

  3. On Demand sourcing data from external apps sample - Demonstrates how Mantis Jobs can pull events on demand from external applications.

Next steps.

To teardown the Mantis cluster, issue the following command

$ cd <mantis>
$ docker-compose -f docker-compose.yml down