From 1b989fb0b2a0b083f65d8c5bd1c2acec295547a0 Mon Sep 17 00:00:00 2001 From: Emmanuel Nyachoke Date: Wed, 21 Aug 2024 09:25:32 +0300 Subject: [PATCH] Finish bulding images --- .github/workflows/ci.yml | 2 + distro/pom.xml | 13 --- pom.xml | 219 ++++++++++++++++++++++++++++----------- 3 files changed, 162 insertions(+), 72 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 106c6e7..c1ab907 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,3 +26,5 @@ jobs: secrets: NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} + DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} diff --git a/distro/pom.xml b/distro/pom.xml index 6bcffef..6ef567d 100644 --- a/distro/pom.xml +++ b/distro/pom.xml @@ -535,19 +535,6 @@ - - Generate Docker Compose Embedded yaml - - execute - - process-resources - - - - - - diff --git a/pom.xml b/pom.xml index d1f813f..a35641a 100644 --- a/pom.xml +++ b/pom.xml @@ -37,11 +37,6 @@ dependencies true - - - - ozone-embedded - mekomsolutions @@ -73,6 +68,164 @@ + + + docker + + + ozone-embedded + mekomsolutions + + + + + org.codehaus.gmavenplus + gmavenplus-plugin + + + Generate Docker Compose Embedded yaml + + execute + + process-resources + + + + + + + + + + io.fabric8 + docker-maven-plugin + + + + mekomsolutions/ozone-embedded-openmrs-3-backend:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/openmrs/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + mekomsolutions/ozone-embedded-openmrs-3-frontend:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/frontend/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/ + + + + mekomsolutions/ozone-embedded-odoo:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/odoo/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + mekomsolutions/ozone-embedded-senaite:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/senaite/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + mekomsolutions/ozone-embedded-erpnext:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/erpnext/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + mekomsolutions/ozone-embedded-eip-erpnext-openmrs:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/eip-erpnext-openmrs/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + mekomsolutions/ozone-embedded-eip-odoo-openmrs:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/eip-odoo-openmrs/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + mekomsolutions/ozone-embedded-eip-openmrs-senaite:${project.version} + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker/eip-openmrs-senaite/Dockerfile + + ${project.build.directory}/${project.artifactId}-${project.version}/distro + + + + + + linux/amd64 + linux/arm64 + + + + + + Build embedded docker images + + build + + package + + + + + org.apache.maven.plugins + maven-resources-plugin + + + + Copy Docker Embedded compose file + package + + copy-resources + + + + ${project.build.directory}/${project.artifactId}-${project.version}/run/docker + true + + + + ${project.build.directory}/${project.artifactId}-${project.version}/docker-embedded/docker + true + + docker-compose-embedded.yaml + + + + + + + + + + + + @@ -107,9 +260,9 @@ ozone-distro - + - Copy Ozone Docker Embedded + Copy Ozone Docker Embedded Files generate-resources unpack-dependencies @@ -143,58 +296,6 @@ - - org.codehaus.gmavenplus - gmavenplus-plugin - - - Generate Docker Compose Embedded yaml - - execute - - process-resources - - - - - - - - - - - io.fabric8 - docker-maven-plugin - - - - fabric8:dmp-sample-dockerfile - - - ${project.basedir}/distro/target/docker-embedded/docker/openmrs/Dockerfile - ${project.build.directory}/distro - - - - - - linux/amd64 - linux/arm64 - - - - - - Build embedded docker images - - build - - package - - - - org.apache.maven.plugins maven-resources-plugin