balena-supervisor/test
Robert Günzler ae646a07ec Add label to expose gpu to container
In the absence of an upstream implementation of the DeviceRequest API introduced
as part of Docker API v1.40 we roll our own using a feature label.

As per my comment in the code, we fall back to the default behavior of
docker cli's `--gpu` and request single device with the `gpu` capabilty.
The only implementation at the moment is the NVIDIA driver; here:
https://github.com/balena-os/balena-engine/blob/master/daemon/nvidia_linux.go

Background on the composefile implementation:
https://github.com/compose-spec/compose-spec/issues/74
https://github.com/docker/compose/issues/6691

Change-type: patch
Connects-to: https://github.com/balena-os/balena-jetson/pull/75
Signed-off-by: Robert Günzler <robertg@balena.io>
2020-06-11 14:06:16 +02:00
..
data Move database app processing out to its own module 2020-06-11 11:55:11 +01:00
lib Move database app processing out to its own module 2020-06-11 11:55:11 +01:00
00-init.ts Make the config module a singleton 2020-06-02 14:29:05 +01:00
01-constants.spec.ts Make the db module a singleton 2020-05-29 15:02:38 +01:00
02-db.spec.ts Make the db module a singleton 2020-05-29 15:02:38 +01:00
03-config.spec.ts Make the config module a singleton 2020-06-02 14:29:05 +01:00
04-service.spec.ts Add label to expose gpu to container 2020-06-11 14:06:16 +02:00
05-device-state.spec.ts Move database app processing out to its own module 2020-06-11 11:55:11 +01:00
06-iptables.spec.ts Remove legacy fallback to DROP rule in iptables 2020-05-05 12:15:19 +01:00
07-validation.spec.ts Correctly check if value is a valid Integer 2020-05-12 12:42:14 -04:00
08-blink.spec.ts Convert some coffeescript tests to typescript 2019-10-30 10:58:32 +00:00
09-event-tracker.spec.ts Make the event-tracker module a singleton 2020-06-08 10:13:33 +01:00
10-network.spec.ts Convert some coffeescript tests to typescript 2019-10-30 10:58:32 +00:00
11-api-binder.spec.ts Refactored @ts-ignore to @ts-expect-error in test file 2020-06-08 13:24:19 -04:00
12-logger.spec.ts Refactored @ts-ignore to @ts-expect-error in test file 2020-06-08 13:24:19 -04:00
13-device-config.spec.ts Make logger module a singleton 2020-06-08 17:19:20 +01:00
14-application-manager.spec.ts Move database app processing out to its own module 2020-06-11 11:55:11 +01:00
15-conversions.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
16-ports.spec.ts Update to @balena/lint 5.x 2020-05-15 12:08:42 +01:00
17-config-utils.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
18-compose-network.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
18-startup.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
19-compose-utils.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
20-compose-volume.spec.ts Make logger module a singleton 2020-06-08 17:19:20 +01:00
21-supervisor-api.spec.ts Make images module a singleton 2020-06-10 11:29:28 +01:00
22-local-mode.spec.ts Make logger module a singleton 2020-06-08 17:19:20 +01:00
23-contracts.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
24-deltas.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
25-journald.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
26-supervisor-api-auth.spec.ts Convert all test files to TS and add .spec to all filenames 2020-06-05 18:34:24 -04:00
28-db-format.spec.ts Move database app processing out to its own module 2020-06-11 11:55:11 +01:00
fast-mocha.opts Remove CoffeeScript tests and all CoffeeScript tools 2020-05-15 13:01:51 -04:00
mocha.opts tests: Increase timeout for test suites 2018-11-06 15:27:58 +00:00