When I run an ls -lR in the container, I do not find any of the fetched 
uri's. What is the proper way to insert configuration files?


{
  "id": "/task2",
  "user": "task",
  "cpus": 1,
  "mem": 256,
  "disk": 0,
  "instances": 1,
  "acceptedResourceRoles": ["*"],
  "upgradeStrategy": { "minimumHealthCapacity": 0, 
"maximumOverCapacity": 0 },
  "constraints": [["hostname","CLUSTER","m04"]],
  "backoffSeconds": 10,
  "networks": [ 
    { "mode": "container", "name": "cni-apps-gw","labels": {"CNI_ARGS": 
"IP=192.168.122.249"} }
  ],
  "fetch": [
    {
      "uri": "file:///tmp/conf.tar.bak",
      "executable": false,
      "extract": true,
      "cache": false,
          "destPath": "var/lib/of/conf.tar" 
  },
  {
      "uri": "file:///tmp/blabla1",
      "executable": false,
      "extract": false,
      "cache": false,
          "destPath": "usr/local/of/blabla1" 
  },
  {
      "uri": "file:///tmp/blabla2",
      "executable": false,
      "extract": false,
      "cache": false,
          "destPath": "var/lib/of/blabla2" 
  },
  {
      "uri": "file:///tmp/blabla3",
      "executable": false,
      "extract": false,
      "cache": false,
          "destPath": "usr/local/of/conf/blabla3" 
  }
  ],
  "container": {
    "type": "MESOS", 
    "docker": {
        "image": "test2",
        "credential": null,
        "forcePullImage": true
        }
  }
}

Reply via email to