diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-05-05 08:10:29 +0000 |
---|---|---|
committer | pmikus <peter.mikus@protonmail.ch> | 2023-05-05 08:10:29 +0000 |
commit | d4f8ab4aa9b8f918e31d85802dad62a225bbe775 (patch) | |
tree | 078897dc551989a2e50cead23526613ba3877d22 /fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 | |
parent | 089b5394689ac28e2e77e16d51197c19cc3dd486 (diff) |
fix(ansible): Docker image roles
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Ic9f9044ffd7ba1a8720fc029aaf2bd154eb043a5
Diffstat (limited to 'fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2')
-rw-r--r-- | fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 index bcb29f1ae0..be0ffcd9f4 100644 --- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 +++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 @@ -12,11 +12,14 @@ services: privileged: true restart: "always" shm_size: "4G" - devices: - - "/dev/hugepages:/dev/hugepages" - - "/dev/vfio:/dev/vfio" volumes: - type: "bind" + source: "/dev/hugepages" + target: "/dev/hugepages" + - type: "bind" + source: "/dev/vfio" + target: "/dev/vfio" + - type: "bind" source: "/etc/sudoers" target: "/etc/sudoers" - type: "bind" @@ -43,11 +46,14 @@ services: privileged: true restart: "always" shm_size: "4G" - devices: - - "/dev/hugepages:/dev/hugepages" - - "/dev/vfio:/dev/vfio" volumes: - type: "bind" + source: "/dev/hugepages" + target: "/dev/hugepages" + - type: "bind" + source: "/dev/vfio" + target: "/dev/vfio" + - type: "bind" source: "/etc/sudoers" target: "/etc/sudoers" - type: "bind" |