Open grrolland opened 5 months ago
Same issue here
We have the same issue.
In Version 0.40.1, the following works as expected.
In Version 0.45.1, the wait is ignored.
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.45.1</version>
<configuration>
<showLogs>false</showLogs>
<containerNamePattern>%a</containerNamePattern>
<images>
<image>
<alias>(our image name)</alias>
<external>
<type>compose</type>
<basedir>.</basedir>
<composeFile>docker-compose-pg-test.yml</composeFile>
</external>
<run>
<containerNamePattern>%a</containerNamePattern>
<wait>
<time>60000</time>
</wait>
</run>
</image>
</images>
</configuration>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>stop</goal>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Description
When using external docker compose as :
And configuration as :
Here I expect :
When the init.sh from the mc container run for a long time (more than 10s), I have this error :
The wait configuration seems to ne be applied
Info
mvn -v
) : Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)