From a4af5161d40380d554dfdf094a602e3b86ed7a9f Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Tue, 30 Jul 2024 20:33:27 +0200 Subject: [PATCH] add make wrapper and initial doc --- Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ README.md | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 Makefile create mode 100644 README.md diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..7a61b203 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +clean: + @echo "Cleaning up Artifacts" + @find . \( -name "*.jar" -o -name "*.zip" -o -name "*.rpm" -o -name "*.deb" \) -type f -delete + +prepare_repo: scripts/fetch-artifacts.sh + @echo "Fetching all artifacts for repository target" + @./scripts/fetch-artifacts.sh repository + +prepare_tengines: scripts/fetch-artifacts.sh + @echo "Fetching all artifacts for tengines targets" + @./scripts/fetch-artifacts.sh tengine + +prepare_ats: scripts/fetch-artifacts.sh + @echo "Fetching all artifacts for ats targets" + @./scripts/fetch-artifacts.sh ats + +prepare_search_enterprise: scripts/fetch-artifacts.sh + @echo "Fetching all artifacts for Search Enterprise targets" + @./scripts/fetch-artifacts.sh search/enterprise + +prepare_all: scripts/fetch-artifacts.sh + @echo "Fetching all artifacts" + @./scripts/fetch-artifacts.sh + +repo: prepare_repo + @echo "Building repository image" + @docker buildx bake --no-cache --progress=plain repository + +tengines: prepare_tengines + @echo "Building Transform Egnine images" + @docker buildx bake --no-cache --progress=plain tengines + +ats: prepare_ats prepare_tengines + @echo "Building Transform Service images" + @docker buildx bake --no-cache --progress=plain ats tengines + +search_enterprise: prepare_search_enterprise + @echo "Building Search Enterprise images" + @docker buildx bake --no-cache --progress=plain enterprise-search + +all: docker-bake.hcl prepare_all + @echo "Building all images" + @docker buildx bake --no-cache --progress=plain diff --git a/README.md b/README.md new file mode 100644 index 00000000..0ca5c939 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# Alfresco Docker images builder + +This projects aims at providing a quick and easy to build and maintain Alfresco +Docker images. + +## Getting started quickly + +If you do not plan on applying specific customizations but just want to get +They latest Alfresco images updated (e.g. with the latest OS security patches), +you can simply run the command below from the root of this project: + +```bash +make all +``` + +This command will build locally all the docjker images this project offers. +At the time of writing, these are: + +* Alfresco Content Repository (Enterprise) 23.2.2 +* Alfresco Search Enterprise 4.4.0 +* Alfresco Transformation Services 4.1.3 + +## Building the specific images + +If you want to build a specific image, you can run one of the following make target: + +* repo: build the Alfresco Content Repository image +* search_enterprise: build the Alfresco Search Enterprise images +* ats: build the Alfresco Transformation Service images + +## Customizing the images + +### Customizing the Alfresco Content Repository image + +The Alfresco Content Repository image can be customized by adding different +types of files in the right locations: + +* Alfresco Module Packages (AMPs) files in the [amps}(repository/amps/README.md) folder +* Additional JAR files for the JRE in the [libs](repository/libs/README.md) folder