HUB
Sign inSign up

i2incommon/comanage-base

By i2incommon

•Updated about 9 hours ago

COmanage Registry PE container image

Image
0

10K+

i2incommon/comanage-base repository overview

⁠comanage-base-image

Multi-arch Docker base image for COmanage deployments (Rocky Linux 10), with:

  • PHP (from Remi) selected via build arg
  • Apache HTTPD + SSL
  • Shibboleth SP 3.6.x / 3.5.x rebuilt from source
  • CI/CD via Jenkins with security scanning and Docker Hub publishing

Use this as a foundation for COmanage-related images that require PHP, Apache, and Shibboleth SP.

⁠Overview

This base image:

  • Installs PHP from the Remi repository, configured by the PHP_VERSION build argument.
  • Installs Apache HTTPD and supporting build/runtime dependencies.
  • Rebuilds Shibboleth SP (3.6.x by default, or 3.5.x) from source RPMs for Rocky Linux 10.
  • Cleans up SP build tools (rpm-build, doxygen, groff), build artifacts, and Shibboleth -devel RPMs in the same layer to minimize image size while preserving the C/PHP runtime and extension development toolchains.
  • Supports multi-architecture builds (amd64 and arm64) using docker buildx.

The container entrypoint is /bin/bash to allow downstream images or orchestration to define the final runtime command.

⁠Shibboleth SP Version

This image rebuilds and installs:

  • Shibboleth SP 3.6.x or 3.5.x (Rocky Linux 10 artifacts)

The unified build script lives under slashRoot/opt (build-sp-rocky10.sh) and is bind-mounted during Docker build.

  • Architecture is resolved in priority order:
    1. -t <arch> command-line option (amd64 or arm64)
    2. TARGETARCH build argument or environment variable
    3. System architecture fallback via uname -m
  • Version is resolved in priority order:
    1. -v <version> command-line option (e.g. 3.6, 3.5, 3.6.0-1, 3.5.2-1)
    2. SHIB_SP_VERSION build argument or environment variable
    3. SHIBBOLETH_VERSION environment variable
    4. shibboleth_sp_version defined in common.bash
    5. Default: 3.6.0-1 (version aliases 3.5 automatically resolve to 3.5.2-1, and 3.6 to 3.6.0-1)

Build-time tools (rpm-build, doxygen, groff), intermediate source/RPM build directories (/root/rpmbuild), and Shibboleth -devel packages are purged in the build layer, leaving only the runtime Shibboleth libraries and configuration.

⁠Build-time Arguments

  • PHP_VERSION (required): PHP stream from Remi, e.g., 8.4.
  • TARGETARCH (normally auto-set by buildx): amd64 or arm64. Falls back to uname -m if omitted.

Shibboleth and dependency versions can be customized via --build-arg:

  • SHIB_REPO_BASE: Base RPM repository URL (default: https://bihs.aco.net/shib/yum/rockylinux10)
  • EL_RELEASE: Enterprise Linux release tag (default: el10)
  • SHIB_SP_VERSION: Shibboleth SP version (default: 3.6.0-1)
  • LOG4SHIB_VERSION: log4shib version (default: 2.0.1-3)
  • XERCES_VERSION: xerces-c version (default: 3.3.0-2)
  • XMLSEC_VERSION: xml-security-c version (default: 3.0.0-1)
  • XMLTOOLING_VERSION: xmltooling version (default: 3.3.0-3)
  • OPENSAML_VERSION: opensaml version (default: 3.3.1-3)

Examples:

  • docker buildx build --platform linux/amd64 --build-arg PHP_VERSION=8.4 -t comanage-base:latest --load .
  • docker buildx build --platform linux/amd64 --build-arg PHP_VERSION=8.4 --build-arg SHIB_SP_VERSION=3.6.0-1 --load .
  • docker buildx build --platform linux/amd64 --build-arg PHP_VERSION=8.4 --build-arg SHIB_SP_VERSION=3.5.2-1 --load .
  • docker compose build

⁠Usage Examples

⁠Example 1: Run an interactive COmanage base container for debugging

Assume you have built or pulled an image like:

  • i2incommon/comanage-base:latest

Start a container with an interactive shell, mounting local Apache/Shibboleth config:

# run container
 docker run --rm -it \
    --name comanage-base-dev \
    -v "(pwd)/apache/conf.d:/etc/httpd/conf.d:ro" \ -v "(pwd)/shibboleth:/etc/shibboleth:ro" \
    -p 8443:8443 \
    i2incommon/comanage-base:latest

Inside the container you can then start services manually, for example:

# inside the container
httpd -DFOREGROUND & shibd php -v

This is useful for verifying PHP extensions, Apache modules, and Shibboleth configuration before building higher-level COmanage images.

⁠Example 2: Build a COmanage application image FROM this base

Use the base image as the foundation for a COmanage app (e.g., Registry or Directory):

# Example
dockerfile FROM i2incommon/comanage-base:latest
# Install COmanage app code (example: copy from build context)
COPY app/ /var/www/html/
# Optional: add site-specific Apache and Shibboleth configuration
COPY apache/comanage.conf /etc/httpd/conf.d/comanage.conf COPY shibboleth/shibboleth2.xml /etc/shibboleth/shibboleth2.xml
# Adjust file ownership/permissions if needed
RUN chown -R apache:apache /var/www/html
# Default command: start Apache in the foreground
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]

Build and run:

# Example
docker build -t yourorg/comanage-registry:latest . docker run --rm -p 8443:8443 yourorg/comanage-registry:latest

This pattern lets you keep all OS/PHP/Shibboleth concerns in the base image while application-specific logic lives in derived images.

⁠License

See LICENSE⁠ for the complete license terms.

Tag summary

Content type

Image

Digest

sha256:adb854ea0…

Size

222.3 MB

Last updated

about 9 hours ago

docker pull i2incommon/comanage-base