From 16df677a25dbd18c51c92285060d821d313ee2ce Mon Sep 17 00:00:00 2001 From: Alexandru-Eusebiu Epure Date: Wed, 21 Mar 2018 17:57:01 +0200 Subject: [PATCH] REPO-3264: changes for release process. Changed release stage repository from /enterprise-releases to /internal-releases Refactor fabric8 maven plugin and the 3 profiles. Comented push to dockerhub, change phase from install to deploy --- alfresco-docker-alfresco-pdf-renderer/pom.xml | 87 ++++++++++++------- alfresco-docker-imagemagick/Dockerfile | 4 +- alfresco-docker-imagemagick/pom.xml | 87 ++++++++++++------- alfresco-docker-libreoffice/pom.xml | 87 ++++++++++++------- pom.xml | 3 +- 5 files changed, 169 insertions(+), 99 deletions(-) diff --git a/alfresco-docker-alfresco-pdf-renderer/pom.xml b/alfresco-docker-alfresco-pdf-renderer/pom.xml index 593da456..b1bca68a 100644 --- a/alfresco-docker-alfresco-pdf-renderer/pom.xml +++ b/alfresco-docker-alfresco-pdf-renderer/pom.xml @@ -13,6 +13,11 @@ ../pom.xml + + alfresco/${project.artifactId} + quay.io + registry.hub.docker.com + @@ -71,27 +76,14 @@ - alfresco/${project.artifactId} - quay.io + ${image.name}:${image.tag} + ${image.registry} ${project.basedir}/ - - ${project.version} - - - - buildAndPush - - build - push - - deploy - - @@ -106,23 +98,10 @@ io.fabric8 fabric8-maven-plugin ${dependency.fabric8.version} - - - - alfresco/${project.artifactId} - - ${project.basedir}/ - - local - - - - - + build-image install - build build @@ -134,7 +113,7 @@ - pushImages + internal @@ -156,12 +135,56 @@ - buildImage + build-push-image + install + + build + push + + + + + + + + + + release + + + + io.fabric8 + fabric8-maven-plugin + ${dependency.fabric8.version} + + + + ${image.name}:${project.version} + ${image.registry} + + ${project.basedir}/ + + + + + + + + build-push-image + deploy build push - install diff --git a/alfresco-docker-imagemagick/Dockerfile b/alfresco-docker-imagemagick/Dockerfile index 7cf9e932..ce980cfc 100644 --- a/alfresco-docker-imagemagick/Dockerfile +++ b/alfresco-docker-imagemagick/Dockerfile @@ -2,8 +2,8 @@ FROM quay.io/alfresco/alfresco-base-java:9 -ENV IMAGEMAGICK_RPM_URL=https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-7.0.7-26.x86_64.rpm -ENV IMAGEMAGICK_LIB_RPM_URL=https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-7.0.7-26.x86_64.rpm +ENV IMAGEMAGICK_RPM_URL=https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-7.0.7-27.x86_64.rpm +ENV IMAGEMAGICK_LIB_RPM_URL=https://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-7.0.7-27.x86_64.rpm COPY target/alfresco-docker-imagemagick*.jar /usr/bin diff --git a/alfresco-docker-imagemagick/pom.xml b/alfresco-docker-imagemagick/pom.xml index c60d9d4b..c4549b23 100644 --- a/alfresco-docker-imagemagick/pom.xml +++ b/alfresco-docker-imagemagick/pom.xml @@ -13,6 +13,11 @@ ../pom.xml + + alfresco/${project.artifactId} + quay.io + registry.hub.docker.com + @@ -71,27 +76,14 @@ - alfresco/${project.artifactId} - quay.io + ${image.name}:${image.tag} + ${image.registry} ${project.basedir}/ - - ${project.version} - - - - buildAndPush - - build - push - - deploy - - @@ -106,23 +98,10 @@ io.fabric8 fabric8-maven-plugin ${dependency.fabric8.version} - - - - alfresco/${project.artifactId} - - ${project.basedir}/ - - local - - - - - + build-image install - build build @@ -134,7 +113,7 @@ - pushImages + internal @@ -156,12 +135,56 @@ - buildImage + build-push-image + install + + build + push + + + + + + + + + + release + + + + io.fabric8 + fabric8-maven-plugin + ${dependency.fabric8.version} + + + + ${image.name}:${project.version} + ${image.registry} + + ${project.basedir}/ + + + + + + + + build-push-image + deploy build push - install diff --git a/alfresco-docker-libreoffice/pom.xml b/alfresco-docker-libreoffice/pom.xml index f3d49e6f..872c9bfc 100644 --- a/alfresco-docker-libreoffice/pom.xml +++ b/alfresco-docker-libreoffice/pom.xml @@ -13,6 +13,11 @@ ../pom.xml + + alfresco/${project.artifactId} + quay.io + registry.hub.docker.com + @@ -81,27 +86,14 @@ - alfresco/${project.artifactId} - quay.io + ${image.name}:${image.tag} + ${image.registry} ${project.basedir}/ - - ${project.version} - - - - buildAndPush - - build - push - - deploy - - @@ -116,23 +108,10 @@ io.fabric8 fabric8-maven-plugin ${dependency.fabric8.version} - - - - alfresco/${project.artifactId} - - ${project.basedir}/ - - local - - - - - + build-image install - build build @@ -144,7 +123,7 @@ - pushImages + internal @@ -166,12 +145,56 @@ - buildImage + build-push-image + install + + build + push + + + + + + + + + + release + + + + io.fabric8 + fabric8-maven-plugin + ${dependency.fabric8.version} + + + + ${image.name}:${project.version} + ${image.registry} + + ${project.basedir}/ + + + + + + + + build-push-image + deploy build push - install diff --git a/pom.xml b/pom.xml index c6123971..5c3649f9 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,7 @@ 1.8 + local 2.0.8 3.5.37 1.5.10.RELEASE @@ -41,7 +42,7 @@ alfresco-internal - https://artifacts.alfresco.com/nexus/content/repositories/enterprise-releases + https://artifacts.alfresco.com/nexus/content/repositories/internal-releases alfresco-internal-snapshots