You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to execute a command like this: docker run schemaspy/schemaspy <options>. Is it possible to do it via Testcontainers?
If I understand correctly, Testcontainers requires me to start the container first and then execute a command inside a running container. However, I don't want to start the container - I'd like to execute a command in the container synchronously and get a result.
I suppose I have to "disable" ENTRYPOINT and then call execInContainer(). If it is so, could you please explain how to "disable" ENTRYPOINT? Replacing ENTRYPOINT with some dummy command, like touch is not an option, as a container can be "distroless".
Activity
bsideup commentedon Apr 12, 2022
Hi @remal,
Have a look at
OneShotStartupCheckStrategy:https://www.testcontainers.org/features/startup_and_waits/#one-shot-startup-strategy-example