X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Fdocker_images%2Ftemplates%2Fdocker-compose-tg.yaml.j2;h=f2be329516cc2100c3492d66d083a09f04dabe05;hb=d452dcd3d3102a5e344a7e3a9a0ca9a65a7ff1b7;hp=0cbe6c5590db879a65dc1c030ae42576e0866d52;hpb=d14b7a69e628582b9132abc1b6e09aada68c0077;p=csit.git 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 0cbe6c5590..f2be329516 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,23 +8,29 @@ services: expose: - "6001" hostname: "{{ ansible_hostname }}" - networks: - tg-nw-0: + network_mode: "host" privileged: true - ports: - - "6001:6001" restart: "always" shm_size: "4G" - devices: - - "/dev/hugepages:/dev/hugepages" - - "/dev/vfio:/dev/vfio" volumes: + - type: "bind" + source: "/usr/bin/ofed_info" + target: "/usr/bin/ofed_info" + - 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" source: "/opt/" target: "/opt/" + - type: "bind" + source: "/usr/bin/iperf3" + target: "/usr/bin/iperf3" - type: "bind" source: "/usr/lib/firmware/" target: "/usr/lib/firmware/" @@ -36,26 +42,29 @@ services: expose: - "6002" hostname: "{{ ansible_hostname }}" - networks: - tg-nw-1: + network_mode: "host" privileged: true - ports: - - "6002:6002" restart: "always" shm_size: "4G" - devices: - - "/dev/hugepages:/dev/hugepages" - - "/dev/vfio:/dev/vfio" volumes: + - type: "bind" + source: "/usr/bin/ofed_info" + target: "/usr/bin/ofed_info" + - 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" source: "/opt/" target: "/opt/" + - type: "bind" + source: "/usr/bin/iperf3" + target: "/usr/bin/iperf3" - type: "bind" source: "/usr/lib/firmware/" target: "/usr/lib/firmware/" -networks: - tg-nw-0: - tg-nw-1: \ No newline at end of file