hi,
i added external tag inorder to start docker compose file. the containers started as expected but the wait section not work.
Can u share some info how to achieve this it
plugin version
0.27.2
maven version
3.3.9
my pom section
<configuration>
<images>
<image>
<alias>data-stream-stack</alias>
<name>behalf/data-stream-stack:latest</name>
<external>
<type>compose</type>
<basedir>src/main/docker</basedir>
<composeFile>docker-compose.yml</composeFile>
</external>
<build/>
<run>
<wait>
<!-- Change wait configuration to use healthy element. see http://dmp.fabric8.io/#start-wait -->
<http>
<url>http://localhost:8083</url>
<method>GET</method>
<status>200</status>
</http>
<time>100000</time>
</wait>
</run>
</image>
</images>
<!--<skip>false</skip>-->
</configuration>
Hello,
I do have the same issue with the configuration below:
maven version: 3.5.0
plugin version: Version: 0.27.2
The ability to refer to a docker-compose file is IMHO a major feature as it allow to source configuration from one place (the docker-compose.yaml). If the wait option cannot work in this context it becomes not usable in many use cases. Thank anyone in advance for hes/her help.
<configuration>
<images>
<image>
<alias>it-database</alias>
<external>
<type>compose</type>
<basedir>docker</basedir>
<composeFile>docker-compose.yml</composeFile>
</external>
<run>
<wait>
<log>(?s).*database system is ready to accept connections</log>
<time>40000</time>
</wait>
</run>
</image>
</images>
<failOnError>true</failOnError>
</configuration>
I had the same issue and my problem was that the
I had the same issue and my problem was that the value didn't match with a service name in the docker-compose file.
Thank you for your suggestion - could you be more specific : which value are referring you to ?
@oligatorr He probably meant \
How can I wait multiple services up and running?
Most helpful comment
@oligatorr He probably meant \