Open fmiguelez opened 3 years ago
Using wait option does what I want:
<wait>
<exit>0</exit>
<time>600000</time>
</wait>
The problem is that it does not return when container execution finishes. You have tu press CTRL-C
[INFO] DOCKER> [myimage] "ansible": Waited on exit code 0 273551 ms <---- It never returns control here. I have to press CTRL-C
[INFO] DOCKER> [myimage] "ansible": Stop and removed container 08d221c96b46 after 0 ms
Description
I would like to run a container and let it return from maven, same way I would do with "docker run". However when using the plugin execution is stuck and never returns control. Is it possible to use wait/healthcheck or whatever other options to just return immediatly after container execution has completed successfully or not?
This is is an example to illustrate this.
Docker command:
I create now a maven project with this simple pom file:
And try to run it:
The command is stuck and never returns control unless I press CTRL-C.
Is it possible at all what I am asking for?