Skip to content

Commit

Permalink
docker update
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Dec 15, 2017
1 parent 3ca7f73 commit 39aec79
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 9 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM imixs/wildfly:latest
FROM imixs/wildfly:1.2.0

# Deploy imixs-amdin artefact from latest Github Release
RUN wget https://github.com/imixs/imixs-admin/releases/download/4.2.3/imixs-admin-4.2.3.war \
&& mv imixs-admin-4.2.3.war $WILDFLY_DEPLOYMENT
# Deploy artefact
COPY ./target/imixs-admin-*.war ${WILDFLY_DEPLOYMENT}/
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ Imixs-Admin is based on maven. To build the Java EE artifact run:

To build the docker image run

docker build --tag=imixs/imixs-admin .
mvn clean install -Pdocker

To push the docker image into a registry run

mvn clean install -Pdocker-push -Dorg.imixs.docker.registry=localhost:5000

where 'localhost:5000' need to be replaced with your private registry.


### Deployment Notes
Expand Down
131 changes: 127 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,134 @@
</licenses>




<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Default docker registry -->
<org.imixs.docker.registry>localhost:5000</org.imixs.docker.registry>
</properties>

<profiles>

<profile>
<id>docker-build</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>install</phase>
<configuration>

<target>
<exec executable="docker">
<arg value="build" />
<arg value="-t" />
<arg value="imixs/imixs-admin" />
<arg value="./" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>


<profile>
<id>docker-push</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<target>
<exec executable="docker">
<arg value="build" />
<arg value="-t" />
<arg
value="imixs/imixs-admin:${project.version}" />
<arg value="./" />
</exec>
<exec executable="docker">
<arg value="tag" />
<arg value="imixs/imixs-admin:${project.version}" />
<arg
value="${org.imixs.docker.registry}/imixs/imixs-admin:${project.version}" />
</exec>
<exec executable="docker">
<arg value="push" />
<arg
value="${org.imixs.docker.registry}/imixs/imixs-admin:${project.version}" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>


<profile>
<id>docker-hub</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>install</phase>
<configuration>
<target>
<exec executable="docker">
<arg value="build" />
<arg value="-t" />
<arg
value="imixs/imixs-admin:${project.version}" />
<arg value="./" />
</exec>
<exec executable="docker">
<arg value="push" />
<arg
value="imixs/imixs-admin:${project.version}" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>
</profiles>



<build>
<resources>
<!-- enable resource filtering -->
Expand Down Expand Up @@ -89,10 +211,11 @@

</plugins>
</build>


<dependencies>

</dependencies>

</dependencies>


<!-- Distributen Management oss.sonatype.org -->
Expand Down

0 comments on commit 39aec79

Please sign in to comment.