build(distro-wildfly) Use DMP to produce WF10 docker image using latest code.
MODIFY
distro/wildfly10/pom.xml
distro/wildfly10/pom.xml
<packaging>pom</packaging>
<name>apiman-distro-wildfly10</name>
+ <properties>
+ <docker.base-image>jboss/wildfly:10.1.0.Final</docker.base-image>
+ <docker.target-image-name>apiman/on-wildfly10:master</docker.target-image-name>
+ </properties>
+
<dependencies>
<!-- The WildFly 8 version of APIMan -->
<dependency>
<profile>
<id>docker</id>
<build>
- <finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
- <groupId>com.spotify</groupId>
+ <groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
- <version>0.1.1</version>
<executions>
<execution>
- <phase>package</phase>
+ <id>docker-build</id>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
- <imageName>${project.artifactId}:${project.version}</imageName>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.artifactId}-overlay.zip</include>
- </resource>
- </resources>
+ <images>
+ <image>
+ <name>${docker.target-image-name}</name>
+ <alias>wildfly-master</alias>
+ <build>
+ <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
+ <assembly>
+ <inline>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <include>target/${project.artifactId}-${project.version}-overlay.zip</include>
+ </includes>
+ <outputDirectory></outputDirectory>
+ <filtered>false</filtered>
+ <directoryMode>0755</directoryMode>
+ <fileMode>0755</fileMode>
+ </fileSet>
+ </fileSets>
+ </inline>
+ </assembly>
+ </build>
+ <run>
+ <ports>
+ <port>8080:8080</port>
+ </ports>
+ </run>
+ </image>
+ </images>
</configuration>
</plugin>
</plugins>

ADD
distro/wildfly10/src/main/docker/Dockerfile
+FROM ${docker.base-image}
+
+MAINTAINER Marc Savy <marc@rhymewithgravy.com>
+
+ENV APIMAN_VERSION ${project.version}
+
+USER root
+
+COPY maven/target ${JBOSS_HOME}
+
+RUN chown -R jboss:0 ${JBOSS_HOME} \
+ && chmod -R g+rw ${JBOSS_HOME}
+
+USER jboss
+
+RUN cd $HOME/wildfly && bsdtar -xvf apiman-distro-wildfly10-$APIMAN_VERSION-overlay.zip
+
+# Set the default command to run on boot
+ENTRYPOINT ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0", "-c", "standalone-apiman.xml"]

MODIFY
pom.xml
pom.xml
<version.failsafe.plugin>2.14</version.failsafe.plugin>
<version.war.plugin>2.5</version.war.plugin>
<version.exec.plugin>1.3.2</version.exec.plugin>
- <version.docker.plugin>0.11.2</version.docker.plugin>
+ <version.docker.plugin>0.23.0</version.docker.plugin>
<version.frontend-maven.plugin>1.3</version.frontend-maven.plugin>
<version.git-commit-id.plugin>2.2.1</version.git-commit-id.plugin>

build(distro-wildfly) Use DMP to produce WF10 docker image using latest code.