google / testrun

A tool to automate verification of network-based device behavior
Apache License 2.0
25 stars 9 forks source link

Testrun with docker inside docker #391

Open ChinmayJoshi-eaton opened 6 months ago

ChinmayJoshi-eaton commented 6 months ago

We’re trying to add a new step to our Jenkins pipeline. This step runs a ‘testrun’ inside a Jenkins node, which is like another container. We’ve managed to do this by creating our own Docker image using a method called Docker-in-Docker (DinD).

But we’re having a problem when we connect a device using a USB Ethernet adapter. If the device isn’t connected, everything works fine. But when we connect the device and put it inside the container, the build process stops and doesn’t move forward. I’m using two networks when I run the Docker command: docker run -it --runtime=sysbox-runc --network=testrun-network --network=my_bridge_network google-testrun. Also, our setup is behind a proxy.

We’re looking into this problem. Any advice or suggestions would be really helpful. Thanks!

jboddey commented 5 months ago

Thanks for raising this as a request. I'm glad to see you trying to use Testrun within your own QA process. We don't currently have capacity to support for complex use cases such as this but we may come back to this in the future. However, if you do happen to find a solution for this, please let us know so that we can potentially create some additional documentation to support other users!

duncangreene commented 1 week ago

@ChinmayJoshi-eaton did you manage to get this working?