X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Fdocker_images%2Ftemplates%2Fdocker-compose-sut.yaml.j2;h=79f0f71e58e38e1bd6c540c474cd938e7b15e5db;hb=a992f87495a72b4e0962ff73529cf4230cc33893;hp=be0ffcd9f416d28ba573b6253e79fffaf525f046;hpb=d4f8ab4aa9b8f918e31d85802dad62a225bbe775;p=csit.git diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 index be0ffcd9f4..79f0f71e58 100644 --- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 +++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-sut.yaml.j2 @@ -4,6 +4,8 @@ services: build: context: "base/" dockerfile: "Dockerfile" + cap_add: + - NET_RAW command: ["/usr/sbin/sshd","-D", "-p", "6001"] expose: - "6001" @@ -28,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" @@ -38,6 +49,8 @@ services: build: context: "base/" dockerfile: "Dockerfile" + cap_add: + - NET_RAW command: ["/usr/sbin/sshd","-D", "-p", "6002"] expose: - "6002" @@ -62,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"