diff --git a/Dockerfile b/Dockerfile index e65b2ed..afc4465 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +# Deploy artefact +COPY ./target/imixs-admin-*.war ${WILDFLY_DEPLOYMENT}/ \ No newline at end of file diff --git a/README.md b/README.md index 63e94ed..23d92af 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pom.xml b/pom.xml index 8a8dfdb..5059563 100644 --- a/pom.xml +++ b/pom.xml @@ -45,12 +45,134 @@ - - UTF-8 + + localhost:5000 + + + + docker-build + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.8 + + + install + + + + + + + + + + + + + run + + + + + + + + + + + + docker-push + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.8 + + + install + + + + + + + + + + + + + + + + + + + + + run + + + + + + + + + + + + docker-hub + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.8 + + + install + + + + + + + + + + + + + + + + run + + + + + + + + + + + + @@ -89,10 +211,11 @@ + + - - +