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