Skip to content

Docker build for chronos based on the mesosphere deb package

License

Notifications You must be signed in to change notification settings

bfs/docker-chronos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-chronos

Docker build for chronos based on the mesosphere deb package

Starting

docker run --restart=always --name chronos -p 8081:8081 -m 1g -e MESOS_ZK=zk://pet100:2181,pet110:2181,pet120:2181/mesos -e CHRONOS_ZK=zk://pet100:2181,pet110:2181,pet120:2181 -e CHRONOS_HOSTNAME=`hostname` boritzio/docker-chronos

This can (and should) be run on marathon with a config like this:

{
  "id": "chronos",
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "boritzio/docker-chronos",
      "forcePullImage": true,
      "network": "HOST",
      "parameters": [
        { "key": "env", "value": "MESOS_ZK=zk://pet100:2181,pet110:2181,pet120:2181/mesos" },
        { "key": "env", "value": "CHRONOS_ZK=pet100:2181,pet110:2181,pet120:2181" },
        { "key": "env", "value": "MAIL_SERVER=smtp.myco.com:25" },
        { "key": "env", "value": "[email protected]" }
      ]
    }
  },
  "instances": 3,
  "cpus": 1,
  "mem": 1024,
  "ports": [4400],
  "healthChecks": [
    {
      "protocol": "HTTP",
      "portIndex": 0,
      "path": "/",
      "gracePeriodSeconds": 5,
      "intervalSeconds": 20,
      "maxConsecutiveFailures": 3
    }
  ]
}

About

Docker build for chronos based on the mesosphere deb package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages