| <?xml version="1.0" encoding="UTF-8"?> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>demo-parent</artifactId> |
| <groupId>io.servicecomb.demo</groupId> |
| <version>0.1.0-m1</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>docker-build-config</artifactId> |
| <packaging>pom</packaging> |
| |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <configuration> |
| <images> |
| <image> |
| <name>${project.artifactId}:${project.version}</name> |
| <alias>${project.artifactId}</alias> |
| <build> |
| <from>openjdk:8-jre-alpine</from> |
| <ports> |
| <port>7070</port> |
| <port>8080</port> |
| <port>9090</port> |
| </ports> |
| <assembly> |
| <mode>tar</mode> |
| <descriptor>${root.basedir}/demo/assembly/assembly.xml</descriptor> |
| </assembly> |
| <entryPoint> |
| <shell>java $JAVA_OPTS -jar $JAR_PATH</shell> |
| </entryPoint> |
| </build> |
| </image> |
| </images> |
| </configuration> |
| <executions> |
| <execution> |
| <id>build</id> |
| <phase>package</phase> |
| <goals> |
| <goal>build</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.commonjava.maven.plugins</groupId> |
| <artifactId>directory-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>directories</id> |
| <goals> |
| <goal>highest-basedir</goal> |
| </goals> |
| <phase>initialize</phase> |
| <configuration> |
| <property>root.basedir</property> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| </project> |