We can set up testcontainers reuse in their config with testcontainers.reuse.enable=true which works nicely, but we need stop the container manually after dev mode stops. I'm thinking if we could make this interactive in dev mode to manually press something to kill containers with the dev mode or to keep them running for reuse.
Implementation ideas
We keep track of the started containers for Dev Services, so we should be able to manually stop them when dev mode ends.
Description
We can set up testcontainers reuse in their config with
testcontainers.reuse.enable=true
which works nicely, but we need stop the container manually after dev mode stops. I'm thinking if we could make this interactive in dev mode to manually press something to kill containers with the dev mode or to keep them running for reuse.Implementation ideas
We keep track of the started containers for Dev Services, so we should be able to manually stop them when dev mode ends.