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=c73cc78c74912d533d80fbda43ff43a6c66a6ba6;hpb=ab282c84ca6b7bc6030123aec11979d9101ffbe9;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 c73cc78c74..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,12 +30,18 @@ services: - type: "bind" source: "/opt/boot/" target: "/opt/boot/" - - type: "bind" - source: "/var/run/docker.sock" - target: "/var/run/docker.sock" - 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/" @@ -41,6 +49,8 @@ services: build: context: "base/" dockerfile: "Dockerfile" + cap_add: + - NET_RAW command: ["/usr/sbin/sshd","-D", "-p", "6002"] expose: - "6002" @@ -65,12 +75,18 @@ services: - type: "bind" source: "/opt/boot/" target: "/opt/boot/" - - type: "bind" - source: "/var/run/docker.sock" - target: "/var/run/docker.sock" - 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/" \ No newline at end of file