The application can be started as a container via Docker Compose
[demos/spring/data-jdbc] / pom.xml
diff --git a/pom.xml b/pom.xml
index 4cc7dc3..82dc5dd 100644 (file)
--- a/pom.xml
+++ b/pom.xml
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
+       <plugin>
+         <groupId>io.fabric8</groupId>
+         <artifactId>docker-maven-plugin</artifactId>
+         <version>0.33.0</version>
+         <configuration>
+           <images>
+             <image>
+               <name>%a:%l</name>
+             </image>
+           </images>
+         </configuration>
+         <executions>
+           <execution>
+              <id>build</id>
+              <phase>package</phase>
+              <goals>
+                <goal>build</goal>
+              </goals>
+           </execution>
+         </executions>
+       </plugin>
      </plugins>
    </build>