Giter Site home page Giter Site logo

compose-mesos's Introduction

Run Mesos in Docker with Docker Compose!

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

docker-compose up -d

To stream log output, simply run:

docker-compose 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!

compose-mesos's People

Contributors

hellograyson avatar moul avatar mrbrowning avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

compose-mesos's Issues

Use goforever instead of supervisor

Supervisor is terrible.

RUN apt-get -y install golang
RUN mkdir /go
RUN export GOPATH=/go && export PATH=/go/bin:$PATH
RUN go get github.com/gwoo/goforever
ADD mesos-slave.tml /mesos-slave.tml

Unable to follow "Sandbox" links from Mesos UI

After running the container example from the README and then going to the Mesos UI, this error is received when clicking on the "Sandbox" link for a running task:

Failed to connect to slave '20140927-181543-486543788-5050-1-0' on '7af7848f5538:5051'.
Potential reasons:
The slave's hostname, '7af7848f5538', is not accessible from your network
The slave's port, '5051', is not accessible from your network
The slave timed out or went offline

Screenshot:

screen shot 2014-09-27 at 11 43 10 am

Example from README spawns hello app that waits forever

This is likely a simple oversight in setup, but I have Docker Toolbox set up on Mac OSX (El Capitan) and docker-compose up works fine. If I edit /etc/hosts to have "localdocker" mapped to my docker-machine VM, then I can see the UIs. I can curl to localdocker and see the "hello" app land. But it stays in "waiting" forever. Should there be a "localdocker" setting in /etc/hosts in the docker containers? Is this an artifact of docker-machine being different than the old docker-osx, then boot2docker? What am I missing?

Lock versions

Right now none of the containers have versions locked - this means that potentially this combination of containers could drift and become broken. Let's lock those down so we can actually test upgrades by hand :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.