fix(ansible): Docker image roles
[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: "/var/run/docker.sock"
33         target: "/var/run/docker.sock"
34       - type: "bind"
35         source: "/usr/lib/firmware/"
36         target: "/usr/lib/firmware/"
37   numa-1:
38     build:
39       context: "base/"
40       dockerfile: "Dockerfile"
41     command: ["/usr/sbin/sshd","-D", "-p", "6002"]
42     expose:
43       - "6002"
44     hostname: "{{ ansible_hostname[:-1] }}2"
45     network_mode: "host"
46     privileged: true
47     restart: "always"
48     shm_size: "4G"
49     volumes:
50       - type: "bind"
51         source: "/dev/hugepages"
52         target: "/dev/hugepages"
53       - type: "bind"
54         source: "/dev/vfio"
55         target: "/dev/vfio"
56       - type: "bind"
57         source: "/etc/sudoers"
58         target: "/etc/sudoers"
59       - type: "bind"
60         source: "/dev/null"
61         target: "/etc/sysctl.d/80-vpp.conf"
62       - type: "bind"
63         source: "/opt/boot/"
64         target: "/opt/boot/"
65       - type: "bind"
66         source: "/var/run/docker.sock"
67         target: "/var/run/docker.sock"
68       - type: "bind"
69         source: "/usr/lib/firmware/"
70         target: "/usr/lib/firmware/"