ContainerSolutions / minimesos

The experimentation and testing tool for Apache Mesos - NO LONGER MAINTANED!
https://www.minimesos.org
Apache License 2.0
428 stars 61 forks source link

tokenising marathon JSON files #415

Closed sadovnikov closed 8 years ago

sadovnikov commented 8 years ago

Not ready just YET. Tests should be changed too

sadovnikov commented 8 years ago

Done. These changes enable installation of Marathon app with tokens in JSON. For example,

{
  "id": "hello-world-scheduler",
  "cmd": "docker run containersol/mesos-hello-world-scheduler --mesosMaster ${MINIMESOS_MASTER_IP}:${MINIMESOS_MASTER_PORT}",
  "cpus": 0.2,
  "mem": 512.0,
  "env": {
    "JAVA_OPTS": "-Xms128m -Xmx256m"
  },
  "instances": 1
}

Supports ${MINIMESOS_[ROLE]}, ${MINIMESOS_[ROLE]_IP} and ${MINIMESOS_[ROLE]_PORT tokens, where [ROLE] is the container role in the cluster: ZOOKEEPER, MARATHON, CONSUL, MASTER

frankscholten commented 8 years ago

LGTM

Approved with PullApprove