mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
allow to add the /dev/dri device into the container and refactor devices
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
7237433548
commit
92b271c3e5
11 changed files with 72 additions and 2 deletions
|
|
@ -208,6 +208,11 @@ class ContainerDefinitionFetcher
|
|||
$secrets = $entry['secrets'];
|
||||
}
|
||||
|
||||
$devices = [];
|
||||
if (isset($entry['devices'])) {
|
||||
$devices = $entry['devices'];
|
||||
}
|
||||
|
||||
$containers[] = new Container(
|
||||
$entry['container_name'],
|
||||
$displayName,
|
||||
|
|
@ -220,6 +225,7 @@ class ContainerDefinitionFetcher
|
|||
$variables,
|
||||
$dependsOn,
|
||||
$secrets,
|
||||
$devices,
|
||||
$this->container->get(DockerActionManager::class)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue