aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
diff options
context:
space:
mode:
authorPeter Mikus <peter.mikus@protonmail.ch>2025-01-10 12:29:36 +0100
committerPeter Mikus <peter.mikus@protonmail.ch>2025-01-10 11:33:12 +0000
commit32c9388b31499238dee6595757c427cfd6d941cb (patch)
treeb4dd8caeddf19c6149e128841b0d0064f9fe8db5 /fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
parenta584ba5539de2bc9783d227a2603b0c5483045eb (diff)
fix(infra): New AWS images
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: Ibd1892cfc57b9c172fa9a08e39d704c1a812ad3d
Diffstat (limited to 'fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2')
-rw-r--r--fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j222
1 files changed, 20 insertions, 2 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
index c4d53c90c2..9b03c65409 100644
--- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
+++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
@@ -17,8 +17,17 @@ services:
privileged: true
restart: "always"
shm_size: "4G"
-{% if docker_volumes is defined and docker_volumes|length > 0 %}
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"
+{% if docker_volumes is defined and docker_volumes|length > 0 %}
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
@@ -43,8 +52,17 @@ services:
privileged: true
restart: "always"
shm_size: "4G"
-{% if docker_volumes is defined and docker_volumes|length > 0 %}
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"
+{% if docker_volumes is defined and docker_volumes|length > 0 %}
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"