Skip to main content

docker:watch

·181 words·1 min

Ok, you know Docker. And since you are a Java developer you want to know how you can use this in your daily development workflow. You probably also heard about the docker-maven-plugin which seamlessly creates Docker images, starts and stops Docker containers and more all with a concise configuration syntax.

And now there is this new goal docker:watch.

We developers are lazy, right ? We want our code to compile fast, we want the servers to start up fast. And we want to test changes quickly. That’s why we love OSGi1 and JRebel. And we want this for Docker containers, too.

Good news. docker-maven-plugin will support hot rebuild of Docker images and hot restart of containers with a new Maven goal docker:watch. It will be released with version 0.12.1. For the brave coder 0.12.1-SNAPSHOT is already out there, the documentation can be found here.

But before losing more words, here’s a sneak preview.


  1. That’s of course not entirely true. We love OSGi … or we hate it with passion. But even the haters don’t hate it for its hot deployment abilities. ↩︎

Related

Real clean Maven builds with Docker

·383 words·2 mins
A local Maven repository serves as a cache for artifacts and dependencies, we all know this. This helps in speeding up things but can cause subtle problems when doing releases. Docker can help here a bit for avoiding caching issues.

Docker maven plugin rewrite

·818 words·4 mins
My docker-maven-plugin is undergoing a major refactoring. This post explains the motivation behind this and also what you can expect in the very near future. The configuration syntax becomes much cleaner and implicit behavior was removed.