kiwi.container Package¶
Submodules¶
kiwi.container.oci
Module¶
- class kiwi.container.oci.ContainerImageOCI(root_dir, transport, custom_args=None)[source]¶
Bases:
object
Create oci container from a root directory
- Parameters
root_dir (string) – root directory path name
custom_args (dict) –
Custom processing arguments defined as hash keys:
Example
{ 'container_name': 'name', 'container_tag': '1.0', 'additional_names': ['current', 'foobar'], 'entry_command': ['/bin/bash', '-x'], 'entry_subcommand': ['ls', '-l'], 'maintainer': 'tux', 'user': 'root', 'workingdir': '/root', 'expose_ports': ['80', '42'], 'volumes': ['/var/log', '/tmp'], 'environment': {'PATH': '/bin'}, 'labels': {'name': 'value'}, 'history': { 'created_by': 'some explanation here', 'comment': 'some comment here', 'author': 'tux' } }