April 2018
Intermediate to advanced
432 pages
10h 38m
English
As we've mentioned previously, Dockerfile is not the only way of creating and building containers. There are some other approaches available, for example, by using Maven plugin. We have many available plugins dedicated to building images, which are used with mvn commands. One of the more popular among them is com.spotify:docker-maven-plugin. This has the equivalent tags in its configuration that can be used instead of Dockerfile instructions. The configuration of the plugin inside pom.xml for account-service is as follows:
<plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>1.0.0</version> <configuration> <imageName>piomin/${project.artifactId}</imageName> ...