d24ea0236e3fc665e30a20db996fe5db87bd74bb
[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     command: ["/usr/sbin/sshd","-D", "-p", "6001"]
8     expose:
9       - "6001"
10     hostname: "{{ ansible_hostname[:-1] }}1"
11     network_mode: "host"
12     privileged: true
13     restart: "always"
14     shm_size: "4G"
15     volumes:
16       - type: "bind"
17         source: "/dev/hugepages"
18         target: "/dev/hugepages"
19       - type: "bind"
20         source: "/dev/vfio"
21         target: "/dev/vfio"
22       - type: "bind"
23         source: "/etc/sudoers"
24         target: "/etc/sudoers"
25       - type: "bind"
26         source: "/dev/null"
27         target: "/etc/sysctl.d/80-vpp.conf"
28       - type: "bind"
29         source: "/opt/boot/"
30         target: "/opt/boot/"
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: "/var/run/docker.sock"
42         target: "/var/run/docker.sock"
43       - type: "bind"
44         source: "/usr/lib/firmware/"
45         target: "/usr/lib/firmware/"
46   numa-1:
47     build:
48       context: "base/"
49       dockerfile: "Dockerfile"
50     command: ["/usr/sbin/sshd","-D", "-p", "6002"]
51     expose:
52       - "6002"
53     hostname: "{{ ansible_hostname[:-1] }}2"
54     network_mode: "host"
55     privileged: true
56     restart: "always"
57     shm_size: "4G"
58     volumes:
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: "/dev/null"
70         target: "/etc/sysctl.d/80-vpp.conf"
71       - type: "bind"
72         source: "/opt/boot/"
73         target: "/opt/boot/"
74       - type: "bind"
75         source: "/usr/bin/iperf3"
76         target: "/usr/bin/iperf3"
77       - type: "bind"
78         source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
79         target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
80       - type: "bind"
81         source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
82         target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
83       - type: "bind"
84         source: "/var/run/docker.sock"
85         target: "/var/run/docker.sock"
86       - type: "bind"
87         source: "/usr/lib/firmware/"
88         target: "/usr/lib/firmware/"