Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Marathon container service orchestration #4945

Closed
tangjiaxing669 opened this issue Jan 15, 2017 · 7 comments
Closed

Marathon container service orchestration #4945

tangjiaxing669 opened this issue Jan 15, 2017 · 7 comments

Comments

@tangjiaxing669
Copy link

tangjiaxing669 commented Jan 15, 2017

How to use marathon containers to achieve service orchestration, similar docker-compose?

Marathon deployment seems unable to achieve this function.

@janisz
Copy link
Contributor

janisz commented Jan 15, 2017

This can be done at executor level see https://github.com/mesos/docker-compose-executor or by manual translation of docker compose yaml to marathon group http://stackoverflow.com/a/40038361/1387612

@tangjiaxing669
Copy link
Author

@janisz Thanks

@tangjiaxing669
Copy link
Author

@janisz i used docker-compose-executor, but it can't running in marathon 1.3.6. Is there any other workaround? This is my question mesos/docker-compose-executor#19

@janisz
Copy link
Contributor

janisz commented Jan 18, 2017

It looks like threre is a problem with Marathon validation. Can you run same configuration without container filed?

{
  "id": "docker-compose-demo",
  "cmd": "echo hello world",
  "cpus": 1,
  "mem": 128,
  "disk": 0,
  "instances": 1,
  "constraints": [["hostname", "CLUSTER", "slave3"]],
  "executor": "/usr/local/src/compose_executor.sh",
  "labels": {
      "fileName": "/root/docker-compose.yml"
  }
}

Created issue for this: #4978

@tangjiaxing669
Copy link
Author

@janisz If there is no container field, you will be prompted with the following information:

There was a problem with your configuration
general: AppDefinition must either contain one of 'cmd' or 'args', and/or a 'container'.

@aquamatthias
Copy link
Contributor

@tangjiaxing669 The validation makes sure, your app defines an entry point, which is either cmd, args or container. It looks like custom executors are not part of this equation. Please file as a separate issue.
If you define "cmd": "foo" does it start correctly?

@meichstedt
Copy link
Contributor

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1941. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

@d2iq-archive d2iq-archive locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants