Skip to content

joscas/fig-mesos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Run Mesos in Docker with Fig!

Assuming you've already installed Fig, then checkout and run:

fig up -d

To stream log output, simply run:

fig logs

Great! Now let's pop open the Mesos, Marathon, & Chronos' UI like so:

open http://localdocker:5050/ # open Mesos UI
open http://localdocker:8080/ # open Marathon UI
open http://localdocker:4400/ # Open Chronos UI

Let's launch a simple app through Marathon's REST API like so:

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
  localdocker:8080/v2/apps -d '
{
    "id": "hello",
    "cpus": 0.1,
    "mem": 32,
    "cmd": "echo hello; sleep 10"
}'

And now for a Docker container:

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
  localdocker:8080/v2/apps -d '
{
    "id": "inky",
    "container": {
        "docker": {
            "image": "mesosphere/inky"
        },
        "type": "DOCKER",
        "volumes": []
    },
    "args": ["hello"],
    "cpus": 0.2,
    "mem": 32.0,
    "instances": 1
}'

Much thanks to the following sources:

Cheers!

About

Run Mesos in Docker with Fig!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors