You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."
The text was updated successfully, but these errors were encountered:
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.
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).
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."
The text was updated successfully, but these errors were encountered: