aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-05-16 07:08:16 +0000
committerpmikus <peter.mikus@protonmail.ch>2023-05-16 10:24:57 +0000
commitfc0f9d5c6b7cb390bdc2d45ca7c7417e522a488f (patch)
tree2d69c1db5849c40a49baeb90610e1d01aee30f8c /fdio.infra.ansible/roles/docker_images
parentf2a012b21d64319d666decc9f20a5c8f5007bc92 (diff)
feat(infra): Add 3na-spr
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I057f94574d047e3622d1c32f5a622ad08ba3d799
Diffstat (limited to 'fdio.infra.ansible/roles/docker_images')
-rw-r--r--fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j219
1 files changed, 8 insertions, 11 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 1fd365eec0..6dcbc9f871 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
@@ -8,15 +8,15 @@ services:
expose:
- "6001"
hostname: "{{ ansible_hostname }}"
- networks:
- tg-nw-0:
+ network_mode: "host"
privileged: true
- ports:
- - "6001:6001"
restart: "always"
shm_size: "4G"
volumes:
- type: "bind"
+ source: "/usr/bin/ofed_info"
+ target: "/usr/bin/ofed_info"
+ - type: "bind"
source: "/dev/hugepages"
target: "/dev/hugepages"
- type: "bind"
@@ -39,15 +39,15 @@ services:
expose:
- "6002"
hostname: "{{ ansible_hostname }}"
- networks:
- tg-nw-1:
+ network_mode: "host"
privileged: true
- ports:
- - "6002:6002"
restart: "always"
shm_size: "4G"
volumes:
- type: "bind"
+ source: "/usr/bin/ofed_info"
+ target: "/usr/bin/ofed_info"
+ - type: "bind"
source: "/dev/hugepages"
target: "/dev/hugepages"
- type: "bind"
@@ -62,6 +62,3 @@ services:
- type: "bind"
source: "/usr/lib/firmware/"
target: "/usr/lib/firmware/"
-networks:
- tg-nw-0:
- tg-nw-1: \ No newline at end of file