fix(dpdk): CX7 support
[csit.git] / fdio.infra.ansible / roles / docker_images / templates / docker-compose-sut.yaml.j2
index bcb29f1..79f0f71 100644 (file)
@@ -4,6 +4,8 @@ services:
     build:
       context: "base/"
       dockerfile: "Dockerfile"
+    cap_add:
+      - NET_RAW
     command: ["/usr/sbin/sshd","-D", "-p", "6001"]
     expose:
       - "6001"
@@ -12,10 +14,13 @@ services:
     privileged: true
     restart: "always"
     shm_size: "4G"
-    devices:
-      - "/dev/hugepages:/dev/hugepages"
-      - "/dev/vfio:/dev/vfio"
     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"
@@ -25,6 +30,15 @@ services:
       - 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"
@@ -35,6 +49,8 @@ services:
     build:
       context: "base/"
       dockerfile: "Dockerfile"
+    cap_add:
+      - NET_RAW
     command: ["/usr/sbin/sshd","-D", "-p", "6002"]
     expose:
       - "6002"
@@ -43,10 +59,13 @@ services:
     privileged: true
     restart: "always"
     shm_size: "4G"
-    devices:
-      - "/dev/hugepages:/dev/hugepages"
-      - "/dev/vfio:/dev/vfio"
     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"
@@ -56,6 +75,15 @@ services:
       - 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"