NOTE: This repo has been obsoleted by https://github.com/container-images/container-image-template and is only kept as a reference point to past implementation and issues. It's not maintained any more.
This is a template of a git repository which is a source for building container images.
There are two templates within this repository on two different branches:
-
master— template for images with multiple versions -
single— image with only one single version
help- a directory containinghelp.mdfile. This serves as a base for container help page. It can be templated on per-version and per-os_variant bases. On executingmake docin a<version>/<os_variant>/directory, it will search for<version>/root/help.valuesand<version>/<os_variant>/root/help.values, source these two scripts (if they exist) and runenvsubst(environment variable substitution) to obtainhelp.mdspecific to the currentlymake-ed image.LICENSE— pick the right licenseMakefile— so it's easy to build, run, testopenshift-template.yml- general OpenShift template. A postfix template https://github.com/container-images/postfix/blob/master/openshift-template.yml- update it. It includes several commands what to update
README.md— global documentation for the whole service- what is it, how to build, how to use
tests/— these tests should verify that the image works
Dockerfile— default Dockerfile, should be based on Fedora now (will likely change in future)Makefile- so it's easy to build, run, test and convert help fileexamples/— directory with examples that demonstrate the image functionality:- these examples should be ideally present in a form of documentation
- code samples are welcome too
files/— this is the place where you should store configuration, helper scripts, etc.README.md— version specific documentationroot/- place for help fileshelp.md- Container manual page. Use thego-md2mancommand to convert it :go-md2man -in=help.md -out=help.1help.1- Generated manual page.