Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-maven-plugin is effectively deprecated, update to dockerfile-maven #1

Open
freddieFishCake opened this issue Jul 25, 2017 · 2 comments

Comments

@freddieFishCake
Copy link

freddieFishCake commented Jul 25, 2017

The examples fail to build at the docker-maven-plugin stage when building on a raspberry pi running raspian.
I upgraded the pom files to use the latest version of docker-maven-plugin (1.0.0) but it still fails. However, the plugin is effectively deprecated and it may be a good idea to upgrade the examples to use dockerfile-maven.

From docker-maven-plugin:
"Over time at Spotify we have realized that the simplest way to build a Docker image from a Java project is to have the developer write the Dockerfile. The behavior of this plugin around generating Dockerfiles, copying your project directory to a "staging" directory to use as the Docker build context, etc., ultimately led to a lot of unnecessary confusion with our users that stemmed from introducing extra abstractions and a need for configuration on top of what Docker is providing.

This led to the creation of a second Maven plugin for building docker images, dockerfile-maven, which we think offers a simpler mental model of working with Docker from Maven, for all of the reasons outlined in dockerfile-maven's README.

We recommend that new projects use dockerfile-maven."

@carnellj
Copy link
Owner

Unfortunately, they did this shortly after my book went to print. I just received an email from another reader on this yesterday, so in talking with my editor, I am probably going to do a blog post and then post some examples once I work through the new plugin.

@iammackinnon
Copy link

Did you get around to making that blog post?

If it isn't long, perhaps some sort of gist and link it here instead? I suspect that most of us who purchased your book don't know about your blog, and prefer the example to be somewhere centralized in case your blog goes offline (like it is currently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants