Skip to content

Commit

Permalink
add make wrapper and initial doc
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Jul 30, 2024
1 parent 395ff70 commit a4af516
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4af516

Please sign in to comment.