Open laurentsenta opened 2 years ago
Debugging:
Dockerfile.sidecar
to start with dlv (inspiration from https://blog.jetbrains.com/go/2020/05/06/debugging-a-go-application-inside-a-docker-container/)see the commit: https://github.com/testground/testground/commit/51cfc8bbc125903974defc0aecaf737f7e84c314
make docker-sidecar && make doinstall && testground daemon
Run healthcheck to restart container:
testground healthcheck --runner local:docker --fix
The port mapping doesn't always work, but you can always docker inspect testground-sidecar
, find the port and connect to it from the IDE.
debug containers built & run with local docker:
--run-cfg keep_containers=true
At the moment, trying to run the example, I get a sidecar error (on local machine, ubuntu server, stagin ipdx)
Something is broken with the sidecar, using regular example and this branch: https://github.com/testground/testground/tree/devx/improve-rust-tests (current commit: https://github.com/testground/testground/commit/cd1f83a6c8796ebd75d9040257a3ba3a711262c1)
Taking some time to figure out how to run debug tools with the sidecar (goland -> docker -> sidecar ran by testground)