Public Repository

Last pushed: 10 months ago
Short Description
VAMP with Configurable Mesos Environment Variables
Full Description

Marathon-Json

{
  "id": "vamp/vamp",
  "instances": 1,
  "cpus": 0.5,
  "mem": 1024,
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "raghuchalla/vamp-mesos:0.9.0",
      "network": "HOST",
      "forcePullImage": true
    }
  },
  "env": {
    "VAMP_REST_API_PORT": "9090",
    "VAMP_PERSISTENCE_KEY_VALUE_STORE_ZOOKEEPER_SERVERS": "zk-1.zk:2181",
    "VAMP_CONTAINER_DRIVER_MESOS_URL": "http://leader.mesos:5050",
    "VAMP_CONTAINER_DRIVER_MARATHON_URL": "http://marathon.mesos:8080",
    "VAMP_GATEWAY_DRIVER_LOGSTASH_HOST": "elasticsearch-executor.elasticsearch.mesos",
    "VAMP_PULSE_ELASTICSEARCH_URL": "http://elasticsearch-executor.elasticsearch.mesos:9200",
    "VAMP_LIFTER_VAMP_GATEWAY_AGENT_ENABLED": "true"
    VAMP_WAIT_FOR": "http://elasticsearch-executor.elasticsearch.mesos:9200/_template/logstash
  }
}

If you installed on different ports and/or hosts, make sure to update environment variables. For instance, they might look like this:

"env": {
  "VAMP_REST_API_PORT": "9090",
  "VAMP_PERSISTENCE_KEY_VALUE_STORE_ZOOKEEPER_SERVERS": "10.240.0.3:2181",
  "VAMP_CONTAINER_DRIVER_MESOS_URL": "http://10.240.0.3:5050",
  "VAMP_CONTAINER_DRIVER_MARATHON_URL": "http://10.240.0.3:8080",
  "VAMP_GATEWAY_DRIVER_LOGSTASH_HOST": "10.240.0.4",
  "VAMP_PULSE_ELASTICSEARCH_URL": "http://10.240.0.4:9200",
  "VAMP_LIFTER_VAMP_GATEWAY_AGENT_ENABLED": "true"
}

Deploy the app

curl -k -XPOST -d @vamp.json -H "Content-Type: application/json" http://MARATHON_IP_ADDRESS:8080/v2/apps
Docker Pull Command
Owner
raghuchalla

Comments (0)