Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 2.08 KB

README.md

File metadata and controls

82 lines (56 loc) · 2.08 KB

ISLE: ImageMagick

LICENSE CI

Introduction

This repository provides the islandora/imagemagick image which only exists to provide a custom Alpine APK package(s).

Since this does not change often and takes a very long time to cross compile for both platforms it's been moved to it's own repository.

Requirements

To build the Docker images using the provided Gradle build scripts requires:

Building

You can build your host platform locally using the default builder like so.

docker buildx bake --builder default

Local Registry

To test multi-arch builds and remote build caching requires setting up a local registry.

You need to generate certificates for the local registry:

mkcert -install
cp $(mkcert -CAROOT)/* certs/
mkcert -cert-file ./certs/cert.pem -key-file ./certs/privkey.pem "*.islandora.dev" "islandora.dev" "*.islandora.io" "islandora.io" "*.islandora.info" "islandora.info" "localhost" "127.0.0.1" "::1"

A docker compose file is provided to setup a local registry:

docker compose up -d

Once the registry is setup can create a builder:

docker buildx create \
  --bootstrap \
  --config buildkitd.toml \
  --driver-opt "image=moby/buildkit:v0.11.1,network=isle-imagemagick" \
  --name "isle-imagemagick"

Now you can perform the build locally by pushing to the local registry:

REGISTRY=islandora.io docker buildx bake --builder isle-imagemagick ci --push

Cleanup

Remove the builder:

docker buildx rm isle-imagemagick 

Remove the registry:

docker compose down -v