chronos icon indicating copy to clipboard operation
chronos copied to clipboard

Generic way of passing docker parameters

Open strzelecki-maciek opened this issue 11 years ago • 3 comments

On top of https://github.com/mesos/chronos/issues/484 , wouldnt it be better if You copied the way Marathon is handling docker parameters passing?

This gives much more flexibility into passing parameters, especially:

 "parameters": [
            { "key": "a-docker-option", "value": "xxx" },
            { "key": "b-docker-option", "value": "yyy" }
        ]

taken from: https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps

"container": { "type": "DOCKER", "docker": { "image": "group/image", "network": "BRIDGE", "portMappings": [ { "containerPort": 8080, "hostPort": 0, "servicePort": 9000, "protocol": "tcp" }, { "containerPort": 161, "hostPort": 0, "protocol": "udp" } ], "privileged": false, "parameters": [ { "key": "a-docker-option", "value": "xxx" }, { "key": "b-docker-option", "value": "yyy" } ] }, "volumes": [ { "containerPath": "/etc/a", "hostPath": "/var/data/a", "mode": "RO" }, { "containerPath": "/etc/b", "hostPath": "/var/data/b", "mode": "RW" } ] },

strzelecki-maciek avatar Aug 26 '15 10:08 strzelecki-maciek

+1 for this feature, logging could benefit from this.

bobrik avatar Sep 01 '15 16:09 bobrik

I would also like the support of passing "env" to Docker containers as what Marathon does today. e.g. "env": { "LD_LIBRARY_PATH": "/usr/local/lib/myLib" },

yanglei99 avatar Sep 09 '15 16:09 yanglei99

closing, as Feature/docker params #538 was merged

strzelecki-maciek avatar Sep 16 '15 08:09 strzelecki-maciek