New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to get config keys from environment varibles #9

bergerx opened this Issue Jun 30, 2015 · 1 comment


None yet
3 participants

bergerx commented Jun 30, 2015

In my current setup I don't want mesos-dns to depend on anything other than marathon itself (including any file server outside). So I'm not able to use "uris" to pass a config.json file in my marathon config.

I created another mesos-dns docker image just to be able to give mesos-dns parameters as environment variables:
I prefer not to maintain a copy of mesos-dns docker image and want to use it from upstream.

Here is my mesos-dns-marathon.json file:

  "cpus": 0.1,
  "mem": 102,
  "id": "mesos-dns",
  "instances": 1,
  "constraints": [["hostname", "CLUSTER", ""]],
  "env": {
    "MESOS_DOCKER_ZK": "zk://,,",
    "MESOS_DNS_MASTERS": ",,",
  "container": {
    "type": "DOCKER",
    "docker": { "image": "bergerx/mesos-dns" }
  "healthChecks": [{
    "protocol": "COMMAND",
    "command": { "value": "dig +short leader.mesos @$HOST | grep ." }
  "upgradeStrategy": {
    "minimumHealthCapacity": 0,
    "maximumOverCapacity": 0

This comment has been minimized.

amouat commented Aug 12, 2015


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment