docker-maven-plugin
docker-maven-plugin copied to clipboard
Is it possible to stop, rebuild and start a *single* container from the fabric8 maven plugin config inside my pom.xml?
Description
(I think this is more of a feature request)
I have configured some images in my pom.xml and start them using docker:start. If I change anything in the pom, say an evironment variable, I need to restart everything with docker:stop and docker:start in order for the changes to take effect, even though they only affect a single image and I have say 5 running in total (database, jboss, wiremock, kafka, zookeeper, etc.).
It would be cool if I could issue something like docker:restart <imageName> and it would stop the container, recreate it with the new config, and then start it. This would save me minutes per day, perhaps an hour per week!
Info
- docker-maven-plugin version : latest
- Maven version (
mvn -v) : 3.6.3
Umm, have you tried docker:watch[0] ? Maybe this could be useful for your use case
[0] http://dmp.fabric8.io/#docker:watch