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