| 1 |
{ |
| 2 |
"cdiVersion": "0.6.0", |
| 3 |
"kind": "vendor.com/device", |
| 4 |
"devices": [ |
| 5 |
{ |
| 6 |
"name": "myDevice", |
| 7 |
"containerEdits": { |
| 8 |
"deviceNodes": [ |
| 9 |
{"hostPath": "/vendorroot/dev/card1", "path": "/dev/card1"}, |
| 10 |
{"path": "/dev/card2"} |
| 11 |
] |
| 12 |
} |
| 13 |
} |
| 14 |
], |
| 15 |
"containerEdits": { |
| 16 |
"env": [ |
| 17 |
"FOO=CDI_SPEC", |
| 18 |
"BAR=BARVALUE1" |
| 19 |
], |
| 20 |
"deviceNodes": [ |
| 21 |
{"path": "/dev/vendorctl", "uid": 1000, "gid": 1000} |
| 22 |
], |
| 23 |
"mounts": [ |
| 24 |
{"hostPath": "/bin/vendorBin", "containerPath": "/bin/vendorBin"}, |
| 25 |
{"hostPath": "/usr/lib/libVendor.so.0", "containerPath": "/usr/lib/libVendor.so.0"} |
| 26 |
], |
| 27 |
"hooks": [ |
| 28 |
{"hookName": "createContainer", "path": "/bin/vendor-hook"}, |
| 29 |
{"hookName": "startContainer", "path": "/usr/bin/ldconfig"} |
| 30 |
] |
| 31 |
} |
| 32 |
} |