Contributing¶
Reporting a problem or requesting an image¶
- A problem with one image (boot failure, missing package, wrong default): open an issue in that
image's repository. The repository is linked from the image page on
https://openimages.cloud/images/ and listed in
index.json(repo). - A problem with the website, the registry or the build pipeline: open an issue in
oic-website,images-routeror.github. - A new image: open a request in
.github. Only images the project is allowed to redistribute can be added (for example, Red Hat Enterprise Linux is out; Rocky Linux and AlmaLinux are in the catalog instead). - Security issues: see the security policy.
Changing an existing image¶
Each image repository is small: VERSION, build/ (build hook such as customize.sh or
dib-build.sh, and detect-upstream.sh), .github/workflows/release.yml and
.github/workflows/watch.yml. Fork, branch, open a pull request.
- A pull request can be tested without publishing anything: run
release.ymlwithworkflow_dispatch(publishdefaults to false) on your branch. - Keep changes to what a cloud image needs, and document deviations from the image standards at the top of the repository README, with a date and the reason.
- Do not ship a full replacement of
/etc/cloud/cloud.cfg: distribution-specific cloud-init settings go inbuild/config/99_oic-distro.cfg(section C of the standards).
Changing the shared platform¶
The reusable workflows and actions in .github are
consumed at @main by every image repository: a merge there takes effect on the next build of
every image. Test a change from a branch first: point one image's release.yml at the branch
(uses: ...@<branch> and the shared_actions_ref input, which selects the checkout of the
composite actions) and run it as a dry run. If you add a build engine, update the cosign identity expression in the
standards (section A), in oic-website/src/lib/images.ts, and in every README that prints it.
GitHub Actions are pinned by commit SHA, with the version in a comment. The .github repository
has a Renovate configuration that keeps the pins current.
Onboarding a new image (maintainers)¶
Requirements: sections A to F of the image standards are MUST, G to J SHOULD, K (runtime test) MUST for general-purpose images.
Order matters: the repository has a VERSION from its first push, and auto-release.yml
releases it right away. The bucket and the router entry (steps 3 and 4) must exist before
the first push. Steps:
- Repository. Create
open-img-cloud/<id>withVERSION,build/,release.ymlcalling one of the four reusable build workflows,watch.ymlcallingupstream-watch.yml,LICENSE(GPL-2.0) and a README. Use an existing repository of the same family as a model. If your global gitignore excludesbuild/, add!/build/to the repository.gitignore(see CONVENTIONS.md). Add.github/workflows/auto-release.yml(copy it from an existing repository) and a README on the common model (debian-13/README.md). Setruntime_smoke_login_userinrelease.yml(leave it empty only for service images, and document a dedicated test), andruntime_smoke_contractwhen the image does not follow the default contract:minimal,appliance,flatcarortalos(see image contract). - Watcher slot. Give
watch.ymla cron minute that no other repository uses (section G of the standards lists the current allocations). - Bucket. Create a public bucket named
<id>with versioning on Infomaniak Object Storage, in the project that holds the other image buckets (maintainer access only). - Router. In
images-router/wrangler.toml, add<id>toALLOWED_BUCKETS, and<repo>:watch.ymltoSCHEDULED_WORKFLOWSso the Worker dispatches the watcher daily. The Worker's dispatch token must also be allowed on the new repository. - Website. Add an entry to
oic-website/src/data/images.yaml:os_name,title,tagline,description,repo,latest_version,format,arch,tags,login_user,os_distro(libosinfo name when one exists), optionalvariants,logo,status,status_note,featured, and when the defaults do not fit,os_purpose,replace_frequencyandmin_ram(see SCS-0102). Images whoseos_distrois not in the osism schema are left out of the osism export automatically. Then generate the social image:node scripts/export-og.mjs(writespublic/img/og/<id>.png, also used as the README banner). - Organization profile. Add a row to
.github/profile/README.md. - Repository settings. Turn on private vulnerability reporting, and set the description, topics and homepage like the other image repositories.
- First release. Push:
auto-release.ymltagsv<VERSION>and starts the release. Watch the run (build, sign, publish, validate, runtime test), then check the image page andindex.json.
Release secrets are set at the organization level, so a new repository inherits them; nothing to configure per repository.
This documentation¶
Plain Markdown, built with Zensical and published at
https://openimages.cloud/docs/ by the website deployment (oic-website/scripts/build-docs.sh).
The build.yml workflow builds it in strict mode on every pull request. Rules:
- Link to https://openimages.cloud and to
index.jsonfor anything that changes (versions, sizes, file names). Never hardcode current versions. - Check every command, URL and property name against the code before writing it down.
- Links are checked by the
Linksworkflow (lychee) on every push, pull request and weekly.