|
146 | 146 | "cap_drop": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
147 | 147 | "cgroup": {"type": "string", "enum": ["host", "private"]},
|
148 | 148 | "cgroup_parent": {"type": "string"},
|
149 |
| - "command": { |
150 |
| - "oneOf": [ |
151 |
| - {"type": "string"}, |
152 |
| - {"type": "array", "items": {"type": "string"}} |
153 |
| - ] |
154 |
| - }, |
| 149 | + "command": {"$ref": "#/definitions/command"}, |
155 | 150 | "configs": {"$ref": "#/definitions/service_config_or_secret"},
|
156 | 151 | "container_name": {"type": "string"},
|
157 | 152 | "cpu_count": {"type": "integer", "minimum": 0},
|
|
202 | 197 | "dns_opt": {"type": "array","items": {"type": "string"}, "uniqueItems": true},
|
203 | 198 | "dns_search": {"$ref": "#/definitions/string_or_list"},
|
204 | 199 | "domainname": {"type": "string"},
|
205 |
| - "entrypoint": { |
206 |
| - "oneOf": [ |
207 |
| - {"type": "string"}, |
208 |
| - {"type": "array", "items": {"type": "string"}} |
209 |
| - ] |
210 |
| - }, |
| 200 | + "entrypoint": {"$ref": "#/definitions/command"}, |
211 | 201 | "env_file": {"$ref": "#/definitions/string_or_list"},
|
212 | 202 | "environment": {"$ref": "#/definitions/list_or_dict"},
|
213 | 203 |
|
|
738 | 728 | "patternProperties": {"^x-": {}}
|
739 | 729 | },
|
740 | 730 |
|
| 731 | + "command": { |
| 732 | + "oneOf": [ |
| 733 | + {"type": "null"}, |
| 734 | + {"type": "string"}, |
| 735 | + {"type": "array","items": {"type": "string"}} |
| 736 | + ] |
| 737 | + }, |
| 738 | + |
741 | 739 | "string_or_list": {
|
742 | 740 | "oneOf": [
|
743 | 741 | {"type": "string"},
|
|
0 commit comments