diff options
| author | Zuul <zuul@review.opendev.org> | 2020-05-24 13:56:02 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-05-24 13:56:02 +0000 |
| commit | 70bf2fca31b29c71401e0bccd5cec9aecff3af54 (patch) | |
| tree | c2b8c46bbd316284b3d271b17237d7fa8b535d07 | |
| parent | aaba5387bf2a466a201676dd4859ac9cdb1019dd (diff) | |
| parent | 548e66f94270649b40dbd6751a880e985227e61a (diff) | |
| download | kolla-70bf2fca31b29c71401e0bccd5cec9aecff3af54.tar.gz kolla-70bf2fca31b29c71401e0bccd5cec9aecff3af54.zip | |
Merge "[docs] Fix guide about new images"
| -rw-r--r-- | doc/source/contributor/adding-a-new-image.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/source/contributor/adding-a-new-image.rst b/doc/source/contributor/adding-a-new-image.rst index db3f19b50..c097a4c20 100644 --- a/doc/source/contributor/adding-a-new-image.rst +++ b/doc/source/contributor/adding-a-new-image.rst @@ -10,7 +10,7 @@ We use ``jinja2`` templating syntax to help manage the volume and complexity that comes with maintaining multiple Dockerfiles for multiple different base operating systems. -Images should be created under the ``docker`` directory. OpenStack services +Dockerfiles should be placed under the ``docker`` directory. OpenStack services should inherit from the provided ``openstack-base`` image, and infrastructure services (for example: ``fluentd``) should inherit from ``base``. @@ -26,12 +26,15 @@ customise various stages of the build (refer to :ref:`Dockerfile Customisation <dockerfile-customisation>`) Some of these blocks are free form. However, there is a subset that should be -common to every Dockerfile. The overall structure is as follows: +common to every Dockerfile. The overall structure of a Dockerfiles of an +OpenStack project base image is as follows: .. code-block:: console FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} + {% block labels %} LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + {% endblock %} {% block << service >>_header %}{% endblock %} @@ -50,3 +53,6 @@ common to every Dockerfile. The overall structure is as follows: The generic footer block ``{% block footer %}{% endblock %}`` should **not** be included in base images (for example: ``cinder-base``). + +It's probably easiest to identify the most similar service being already +provided, copy its Dockerfile structure and amend it to new needs. |
