fix(tests): Hoststack compatibility
[csit.git] / fdio.infra.ansible / roles / docker_images / templates / docker-compose-tg.yaml.j2
1 version: "3"
2 services:
3   tg-0:
4     build:
5       context: "base/"
6       dockerfile: "Dockerfile"
7     command: ["/usr/sbin/sshd","-D", "-p", "6001"]
8     expose:
9       - "6001"
10     hostname: "{{ ansible_hostname }}"
11     network_mode: "host"
12     privileged: true
13     restart: "always"
14     shm_size: "4G"
15     volumes:
16       - type: "bind"
17         source: "/usr/bin/ofed_info"
18         target: "/usr/bin/ofed_info"
19       - type: "bind"
20         source: "/dev/hugepages"
21         target: "/dev/hugepages"
22       - type: "bind"
23         source: "/dev/vfio"
24         target: "/dev/vfio"
25       - type: "bind"
26         source: "/etc/sudoers"
27         target: "/etc/sudoers"
28       - type: "bind"
29         source: "/opt/"
30         target: "/opt/"
31       - type: "bind"
32         source: "/usr/bin/iperf3"
33         target: "/usr/bin/iperf3"
34       - type: "bind"
35         source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
36         target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
37       - type: "bind"
38         source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
39         target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
40       - type: "bind"
41         source: "/usr/lib/firmware/"
42         target: "/usr/lib/firmware/"
43   tg-1:
44     build:
45       context: "base/"
46       dockerfile: "Dockerfile"
47     command: ["/usr/sbin/sshd","-D", "-p", "6002"]
48     expose:
49       - "6002"
50     hostname: "{{ ansible_hostname }}"
51     network_mode: "host"
52     privileged: true
53     restart: "always"
54     shm_size: "4G"
55     volumes:
56       - type: "bind"
57         source: "/usr/bin/ofed_info"
58         target: "/usr/bin/ofed_info"
59       - type: "bind"
60         source: "/dev/hugepages"
61         target: "/dev/hugepages"
62       - type: "bind"
63         source: "/dev/vfio"
64         target: "/dev/vfio"
65       - type: "bind"
66         source: "/etc/sudoers"
67         target: "/etc/sudoers"
68       - type: "bind"
69         source: "/opt/"
70         target: "/opt/"
71       - type: "bind"
72         source: "/usr/bin/iperf3"
73         target: "/usr/bin/iperf3"
74       - type: "bind"
75         source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
76         target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
77       - type: "bind"
78         source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
79         target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
80       - type: "bind"
81         source: "/usr/lib/firmware/"
82         target: "/usr/lib/firmware/"