Skip to content

Latest commit

 

History

History
115 lines (76 loc) · 7.96 KB

prerequisites.md

File metadata and controls

115 lines (76 loc) · 7.96 KB

Prerequisites

This page lists everything you need before working with the Registry repository (flamingo-stack/registry). Registry is the configuration-driven component of the Flamingo/OpenFrame stack that mirrors third-party container images into the organization's own container registry, using regsync driven by a single declarative manifest, regsync-config.yaml.

Note: The repository graph for Registry currently reports no published artifact and no recorded upstream or downstream dependency on other repositories in the organization (coverage is partial, so this is not proof that nothing consumes it — only that nothing fresh has been indexed). Treat this repository as a self-contained configuration repository rather than a library or service with a runtime API.


What This Repository Is (And Isn't)

Registry does not ship a package.json, a pom.xml, a CLI, shell bootstrap scripts, or a Docker Compose stack of its own — the verified repository facts confirm none of these are present. Instead, its primary artifact is regsync-config.yaml, a YAML manifest consumed by the regsync tool inside a scheduled workflow that keeps mirrored images up to date in the target container registry. Prerequisites below are therefore split into:

  1. What you need to read and edit the manifest correctly (any text editor, YAML awareness, familiarity with the sync rules).
  2. What you need to run regsync locally against the manifest to validate a change before opening a pull request.

Required Software And Versions

Software Minimum Version Purpose Required For
Git 2.30+ Clone the repository and manage branches/commits All contributors
regsync (regclient) Latest stable release Reads regsync-config.yaml and performs the image mirroring Local validation of sync entries
envsubst (part of GNU gettext) Any recent version Expands the ${TARGET_REGISTRY} placeholder in regsync-config.yaml before regsync runs, matching what the CI workflow does Local validation of sync entries
A YAML-aware text editor or IDE Any Edit regsync-config.yaml with correct indentation and structure All contributors
Docker or another OCI-compatible registry client (optional) Recent stable release Inspect resulting mirrored tags in the target registry after a sync Verifying sync results

There is no frontend toolchain (no package.json), no backend build (no pom.xml), and no bundled CLI or shell scripts in this repository — do not install Node.js, Maven, or similar toolchains solely for this repository.


System Requirements

Because Registry's only generated artifact is a YAML configuration file consumed by an external tool, the system requirements are modest:

  • Operating system: Any OS capable of running Git, a text editor, and (optionally) the regsync binary — Linux, macOS, or Windows with WSL all work.
  • Disk space: Minimal for the repository itself; if you run regsync locally to validate a dry run, ensure enough local disk/network bandwidth for whatever images you choose to test against (image layers are pulled and re-pushed, not stored permanently if you dry-run).
  • Network access: Outbound HTTPS access to the source registries referenced in regsync-config.yaml (for example docker.io, quay.io) and to the organization's target registry, if you intend to run a real (non-dry-run) sync.
  • No GPU, container runtime, or orchestration platform is required simply to edit or review this repository's manifest.

Account And Access Requirements

Requirement Why You Need It
GitHub access to flamingo-stack/registry To clone the repository, open branches, and submit pull requests
Membership in the OpenMSP Slack community This organization does not use GitHub Issues or GitHub Discussions; all questions, proposals, and coordination happen in Slack. Join at https://www.openmsp.ai/ or via the invite link https://join.slack.com/t/openmsp/shared_invite/zt-36bl7mx0h-3~U2nFH6nqHqoTPXMaHEHA
Credentials for the target container registry (only if running a real sync) regsync must authenticate to push mirrored images to the destination referenced by ${TARGET_REGISTRY}
Read access to the relevant source registries (usually anonymous/public pulls) Needed only when validating that an allow pattern or semverRange in regsync-config.yaml actually resolves to the tags you expect

Pull requests and code review are the mechanism for proposing changes — there are no GitHub Issues/Discussions workflows in use for this repository.


Environment Variables Needed

Variable Used By Purpose
TARGET_REGISTRY regsync-config.yaml (every target field) and the CI workflow that runs envsubst against it Supplies the destination registry hostname (for example your organization's registry host) that every target: ${TARGET_REGISTRY}/... entry is rewritten to before regsync runs. This must never be hardcoded directly into regsync-config.yaml

Set it locally before a dry run, for example:

export TARGET_REGISTRY="your-registry-host.example"
envsubst < regsync-config.yaml > /tmp/regsync-config.rendered.yaml

Any registry authentication credentials regsync needs (for pulling from source registries or pushing to $TARGET_REGISTRY) are supplied through regsync's own credential configuration mechanism (for example a creds: block or a Docker-style config file) rather than through additional environment variables documented in this repository.


Verification Commands To Check Readiness

Run the following before you start editing regsync-config.yaml or submitting a pull request:

# Confirm Git is installed and the repository clones cleanly
git --version
git clone https://github.com/flamingo-stack/registry.git
cd registry

# Confirm envsubst is available (part of gettext)
envsubst --version

# Confirm regsync is installed and reports a version
regsync version

# Validate that regsync-config.yaml is syntactically valid YAML
# (use any YAML linter/parser you have available, e.g. python3 -c below)
python3 -c "import yaml, sys; yaml.safe_load(open('regsync-config.yaml'))" && echo "YAML is valid"

# Render the manifest with your TARGET_REGISTRY value and do a dry run
export TARGET_REGISTRY="your-registry-host.example"
envsubst < regsync-config.yaml > /tmp/regsync-config.rendered.yaml
regsync check -c /tmp/regsync-config.rendered.yaml

If every command above succeeds — Git and envsubst report version strings, regsync version resolves, the YAML parses, and regsync check completes without configuration errors — your environment is ready to work on this repository.


A Note On Manifest Conventions

Before editing regsync-config.yaml, be aware of the conventions this repository enforces, since they affect how you validate and review your changes:

  • Every sync entry must declare type: repository and a semverRange floor (under tags or each tagSets item) to avoid pulling unbounded historical tags.
  • Every target field must begin with the ${TARGET_REGISTRY} placeholder, never a hardcoded registry hostname, and must mirror the source path (preserving or correctly dropping the library/ namespace for Docker Hub official images).
  • Alpine-variant images must restrict their allow pattern to the -alpine suffix, and allow patterns should match versioned tags, not latest, unless explicitly justified with a comment.
  • Logical groups of images must sit under a # === banner comment block naming the category and listing included images.
  • Bitnami-origin images must be sourced from docker.io/bitnamilegacy/, not docker.io/bitnami/.

Keeping these conventions in mind while you validate locally will reduce review cycles once your change reaches CI.

Once your environment passes the verification commands above, continue to the quick start guide for a walkthrough of making and validating your first change.