This is an automated email from the ASF dual-hosted git repository.
piergiorgio pushed a commit to branch CONNECTORS-1754
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git
The following commit(s) were added to refs/heads/CONNECTORS-1754 by this push:
new 895f821d9 added Dockerfiles for building all the Release Images
(CONNECTORS-1754)
895f821d9 is described below
commit 895f821d954f1a2794a76f765708699bbf66fa1d
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Fri Jun 28 15:11:54 2024 +0200
added Dockerfiles for building all the Release Images (CONNECTORS-1754)
---
.github/workflows/create-docker-image.yml | 90 +++++++++++++++++++++++++++++--
1 file changed, 86 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/create-docker-image.yml
b/.github/workflows/create-docker-image.yml
index 97df64927..824806788 100644
--- a/.github/workflows/create-docker-image.yml
+++ b/.github/workflows/create-docker-image.yml
@@ -55,10 +55,15 @@ on:
- 1.10-JDK-7 #Java 1.7
jobs:
- createDockerImage:
+ createDockerImageBuildingFromSourceCode:
+ if: |
+ ${{ github.event.inputs.release != '2.26-JDK-11' &&
+ github.event.inputs.release != '2.25-JDK-8' &&
+ github.event.inputs.release != '2.24-JDK-8' &&
+ github.event.inputs.release != '2.23-JDK-8' &&
+ github.event.inputs.release != '1.10-JDK-7' }}
runs-on: ubuntu-22.04
steps:
-
- name: Extract MCF Release version
id: mcf
run: |
@@ -73,6 +78,84 @@ jobs:
set -- $mcfrelease
echo "version=${1##*-}" >> $GITHUB_OUTPUT
+ - name: Checkout for legacy versions of ManifoldCF
+ uses: actions/[email protected]
+ with:
+ ref: release-${{ steps.mcf.outputs.release }}
+
+ - name: Ant Build
+ run: ant make-core-deps make-deps image
+
+ - name: Download the specific Dockerfile from GitHub
+ run: |
+ wget
https://raw.githubusercontent.com/apache/manifoldcf/trunk/src/main/docker/JDK-${{
steps.jdk.outputs.version }}/Dockerfile
+
+ - name: Set up QEMU
+ uses: docker/[email protected]
+
+ - name: Set up Docker Buildx
+ uses: docker/[email protected]
+
+ - name: Login to Docker Hub
+ uses: docker/[email protected]
+ with:
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Docker meta
+ id: meta
+ uses: docker/[email protected]
+ with:
+ images: apache/manifoldcf
+ labels: |
+ maintainer=Apache ManifoldCF Developers
<[email protected]>
+ org.opencontainers.image.title=Apache ManifoldCF
+ org.opencontainers.image.description=Apache ManifoldCF is a
multi-repository crawler framework, with multiple connectors.
+ org.opencontainers.image.vendor=Apache Software Foundation
+ org.opencontainers.image.ref.name=manifoldcf
+ org.opencontainers.image.authors=Apache ManifoldCF Developers
<[email protected]>
+
org.opencontainers.image.url=https://hub.docker.com/r/apache/manifoldcf
+
org.opencontainers.image.source=https://github.com/apache/manifoldcf/blob/trunk/Dockerfile
+
org.opencontainers.image.documentation=https://hub.docker.com/r/apache/manifoldcf
+ org.opencontainers.image.version=${{ steps.mcf.outputs.release }}
+ org.opencontainers.image.licenses=Apache-2.0
+
+ - name: Build and push ManifoldCF Docker Image
+ uses: docker/[email protected]
+ with:
+ context: .
+ file: Dockerfile
+ build-args: |
+ MCF_VERSION=${{ steps.mcf.outputs.release }}
+ platforms: linux/amd64,linux/arm64/v8
+ push: true
+ tags: apache/manifoldcf:latest,apache/manifoldcf:${{
steps.mcf.outputs.release }}
+ labels: ${{ steps.meta.outputs.labels }}
+
+ createDockerImageForAvailableDistributionPackage:
+ if: |
+ ${{ github.event.inputs.release == '2.26-JDK-11' ||
+ github.event.inputs.release == '2.25-JDK-8' ||
+ github.event.inputs.release == '2.24-JDK-8' ||
+ github.event.inputs.release == '2.23-JDK-8' ||
+ github.event.inputs.release == '1.10-JDK-7' }}
+ runs-on: ubuntu-22.04
+ steps:
+
+ - name: Extract MCF Release version
+ id: mcf
+ run: |
+ mcfrelease="${{ github.event.inputs.release }}"
+ set -- $mcfrelease
+ echo "release=${1%%-*}" >> $GITHUB_OUTPUT
+
+ - name: Extract JDK version
+ id: jdk
+ run: |
+ mcfrelease="${{ github.event.inputs.release }}"
+ set -- $mcfrelease
+ echo "version=${1##*-}" >> $GITHUB_OUTPUT
+
- name: Checkout the specific Dockerfile
uses: actions/[email protected]
with:
@@ -83,7 +166,6 @@ jobs:
- name: Move the Dockerfile in the root folder
run: |
mv src/main/docker/JDK-${{ steps.jdk.outputs.version }}/Dockerfile
${{ github.workspace }}
- echo ls ${{ github.workspace }}
- name: Download ManifoldCF ${{ steps.mcf.outputs.release }} distribution
run: |
@@ -91,7 +173,7 @@ jobs:
tar -xzvf apache-manifoldcf-${{ steps.mcf.outputs.release
}}-bin.tar.gz && \
mv apache-manifoldcf-${{ steps.mcf.outputs.release }} dist && \
rm apache-manifoldcf-${{ steps.mcf.outputs.release }}-bin.tar.gz
-
+
- name: Set up QEMU
uses: docker/[email protected]