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".
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"
ENTRYPOINTand then callexecInContainer(). If it is so, could you please explain how to "disable"ENTRYPOINT? ReplacingENTRYPOINTwith some dummy command, liketouchis not an option, as a container can be "distroless".