From e4539945c911b30c5b73c036aa7de7da3621098a Mon Sep 17 00:00:00 2001 From: duncdrum Date: Sat, 2 Nov 2024 12:19:17 +0100 Subject: [PATCH] [feature] add multi-arch images see #5450 close #4151 close #5532 close #4153 --- .github/workflows/ci-deploy.yml | 4 +++ exist-docker/pom.xml | 49 ++++++++++++++++++++++++--------- 2 files changed, 40 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml index 6dad561fbf4..1a2d1bc0c5b 100644 --- a/.github/workflows/ci-deploy.yml +++ b/.github/workflows/ci-deploy.yml @@ -15,6 +15,10 @@ jobs: with: distribution: liberica java-version: '17' + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: linux/amd64,linux/arm64 - name: Make buildkit default uses: docker/setup-buildx-action@v3 id: buildx diff --git a/exist-docker/pom.xml b/exist-docker/pom.xml index 13c9c1a4dd6..f912d5a2c16 100644 --- a/exist-docker/pom.xml +++ b/exist-docker/pom.xml @@ -22,7 +22,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA --> - + 4.0.0 @@ -42,14 +44,15 @@ scm:git:https://github.com/exist-db/exist.git scm:git:https://github.com/exist-db/exist.git scm:git:https://github.com/exist-db/exist.git - HEAD - + HEAD + ${project.build.directory}/exist-docker-${project.version}-docker-dir exist.uber.jar latest debug + linux/amd64, linux/arm64 @@ -106,7 +109,9 @@ true - ${project.groupId}:exist-distribution:pom:${project.version} + + ${project.groupId}:exist-distribution:pom:${project.version} @@ -124,7 +129,8 @@ single - ${project.basedir}/../exist-distribution/target/exist-distribution-${project.version}-dir + + ${project.basedir}/../exist-distribution/target/exist-distribution-${project.version}-dir false src/assembly/dist-assembly-docker.xml @@ -183,18 +189,24 @@ - - + + false - + META-INF/mailcap - + META-INF/mailcap.default - - + + true @@ -210,12 +222,18 @@ docker-maven-plugin 0.45.1 - true + true + registry.hub.docker.com existdb/existdb:%v exist + + + ${docker.platforms} + + ${docker.tag} @@ -227,6 +245,11 @@ existdb/existdb:%v-DEBUG exist-debug + + + ${docker.platforms} + + ${docker.debug.tag} @@ -256,4 +279,4 @@ - + \ No newline at end of file