Skip to content

Instantly share code, notes, and snippets.

@iamtew
Last active January 24, 2017 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamtew/d7fb9c691707fa9c03c5d66494e257dd to your computer and use it in GitHub Desktop.
Save iamtew/d7fb9c691707fa9c03c5d66494e257dd to your computer and use it in GitHub Desktop.
Custom Vamp 0.9.2 Marathon container

Taken from:

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

# Use the latest 0.9.2 DC/OS release
FROM magneticio/vamp:0.9.2-dcos
# Add our updated confgiruation
ADD https://raw.githubusercontent.com/magneticio/vamp-docker/master/vamp-dcos/application.conf /usr/local/vamp/application.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment