Open
Description
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<name>in28min/master-MS-${project.artifactId}:${project.version}</name>
</image>
<pullPolicy>IF_NOT_PRESENT</pullPolicy>
</configuration>
</plugin>
The above configuration doesn't work.
Had to google search a lot.
Used older method to create docker image as below:
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<!-- version>1.4.0</version-->
<configuration>
<repository>abcoolynr/${project.artifactId}</repository>
<tag>${project.version}</tag>
<buildArgs>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>install</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
push fails with this older method as well but at least the docker image gets created.
Please check your code and update it at intervals. Just making tutorials and dumping them on students is not good.
Metadata
Metadata
Assignees
Labels
No labels