fix(tests): Hoststack compatibility
[csit.git] / fdio.infra.ansible / roles / docker_images / templates / docker-compose-sut.yaml.j2
index bcb29f1..d24ea02 100644 (file)
@@ -12,10 +12,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 +28,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"
@@ -43,10 +55,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 +71,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"