Преглед изворни кода

Update 2.4 schema

Signed-off-by: Joffrey F <[email protected]>
Joffrey F пре 7 година
родитељ
комит
e6420bd011
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      compose/config/config_schema_v2.4.json

+ 6 - 2
compose/config/config_schema_v2.4.json

@@ -93,7 +93,8 @@
                 "network": {"type": "string"},
                 "target": {"type": "string"},
                 "shm_size": {"type": ["integer", "string"]},
-                "extra_hosts": {"$ref": "#/definitions/list_or_dict"}
+                "extra_hosts": {"$ref": "#/definitions/list_or_dict"},
+                "isolation": {"type": "string"}
               },
               "additionalProperties": false
             }
@@ -113,6 +114,9 @@
         "cpu_percent": {"type": "integer", "minimum": 0, "maximum": 100},
         "cpu_shares": {"type": ["number", "string"]},
         "cpu_quota": {"type": ["number", "string"]},
+        "cpu_period": {"type": ["number", "string"]},
+        "cpu_rt_period": {"type": ["number", "string"]},
+        "cpu_rt_runtime": {"type": ["number", "string"]},
         "cpus": {"type": "number", "minimum": 0},
         "cpuset": {"type": "string"},
         "depends_on": {
@@ -219,6 +223,7 @@
         "mem_swappiness": {"type": "integer"},
         "memswap_limit": {"type": ["number", "string"]},
         "network_mode": {"type": "string"},
+
         "networks": {
           "oneOf": [
             {"$ref": "#/definitions/list_of_strings"},
@@ -258,7 +263,6 @@
           },
           "uniqueItems": true
         },
-
         "privileged": {"type": "boolean"},
         "read_only": {"type": "boolean"},
         "restart": {"type": "string"},