Skip to content

Commit

Permalink
[resolves wildfly-extras#2711] Unable to build image wildflyext/wildf…
Browse files Browse the repository at this point in the history
…ly-camel
  • Loading branch information
jamesnetherton committed Nov 28, 2018
1 parent db68026 commit 7ff1697
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
27 changes: 26 additions & 1 deletion docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,31 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-distro</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.wildfly.camel</groupId>
<artifactId>wildfly-camel-patch</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
</artifactItem>
</artifactItems>
<excludes>**/standalone/configuration/**</excludes>
<outputDirectory>${project.build.directory}/${server.home}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
Expand Down Expand Up @@ -122,7 +147,7 @@
</execution>
<execution>
<id>build-docker-image</id>
<phase>install</phase>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
Expand Down
23 changes: 5 additions & 18 deletions docker/s2i/assembly-artifacts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,18 @@
</formats>
<includeBaseDirectory>false</includeBaseDirectory>

<dependencySets>
<dependencySet>
<useStrictFiltering>true</useStrictFiltering>
<includes>
<include>org.wildfly.camel:wildfly-camel-patch:tar.gz</include>
</includes>
<outputDirectory>${server.home}</outputDirectory>
<scope>provided</scope>
<unpack>true</unpack>
<unpackOptions>
<excludes>
<exclude>standalone/configuration/*</exclude>
</excludes>
</unpackOptions>
</dependencySet>
</dependencySets>

<fileSets>
<fileSet>
<outputDirectory>usr/libexec/s2i</outputDirectory>
<directory>s2i/bin</directory>
<outputDirectory>usr/libexec/s2i</outputDirectory>
<includes>
<include>run</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/${server.home}</directory>
<outputDirectory>${server.home}</outputDirectory>
</fileSet>
</fileSets>

</assembly>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@
<goals>
<goal>enforce</goal>
</goals>
<phase>initialize</phase>
<configuration>
<rules>
<requireJavaVersion>
Expand Down

0 comments on commit 7ff1697

Please sign in to comment.