Taken from:
- http://vamp.io/documentation/installation/configure-vamp/#use-a-custom-application-conf-file
- http://vamp.io/documentation/installation/configure-vamp/#parameterize-application-conf
Download the Dockerfile
and build it like this:
docker build --tag <USERNAME>/vamp:0.9.2-marathon
You can now launch your container inside Marathon, with additional configuration.
Variables you can set, and their defaults:
vamp_url = "http://10.20.0.100:8080"
vamp_url = ${?VAMP_URL}
zookeeper_servers = "zk-1.zk:2181"
zookeeper_servers = ${?VAMP_ZOOKEEPER_SERVERS}
elasticsearch_url = "http://elasticsearch.marathon.mesos:9200"
elasticsearch_url = ${?VAMP_ELASTICSEARCH_URL}
logstash_host = "elasticsearch.marathon.mesos"
logstash_host = ${?VAMP_LOGSTASH_HOST}
logstash_port = "10001"
logstash_port = ${?VAMP_LOGSTASH_PORT}
Image also available on Docker Hub: magneticio/vamp:0.9.2-marathon