[virt-tools-list] [virt-bootstrap] [PATCH v6 00/26] Add support for virt-builder

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Aug 17 09:39:38 UTC 2017


Radostin Stoyanov (26):
  Drop unit tests
  untar: Improve command
  Add regression tests
  untar: Use unique name with virt-sandbox
  get_mime_type: Properly close stdout handle
  DockerSource: Split checksum and layers
  Get layer size if not provided
  Make get_compression_type() reusable
  Make UID/GID mapping reusable
  Split the function mapping_uid_gid
  UID/GID mapping: Use empty list instead of None
  Make set_root_password_in_rootfs reusable
  Simplify setting permissins of shadow file
  Create qcow2 images with guestfs-python
  Enable UID/GID mapping for qcow2
  Set root password with guestfs-python
  Add virt-builder source
  Add --version flag
  Improve readability of parser arguments
  Update helper message for source uri
  Use env variable for temporary directory
  Define source code encoding
  Show warning for unprivileged users
  Update doc strings
  Use cache directory to store downloaded tar files
  Add man page for virt-bootstrap

 MANIFEST.in                                      |   1 +
 man/virt-bootstrap.pod                           |  42 ++
 setup.py                                         |  33 +-
 src/virtBootstrap/__init__.py                    | 211 +++++++-
 src/virtBootstrap/progress.py                    |   1 +
 src/virtBootstrap/sources/__init__.py            |  36 +-
 src/virtBootstrap/sources/docker_source.py       |  48 +-
 src/virtBootstrap/sources/file_source.py         |  34 +-
 src/virtBootstrap/sources/virt_builder_source.py | 148 ++++++
 src/virtBootstrap/utils.py                       | 483 +++++++++++++-----
 src/virtBootstrap/virt_bootstrap.py              | 257 +++++-----
 tests/__init__.py                                | 460 ++++++++++++++++-
 tests/docker_source.py                           | 535 ++++++++++++++++++++
 tests/file_source.py                             | 160 ++++++
 tests/test_docker_source.py                      | 607 -----------------------
 tests/test_file_source.py                        | 171 -------
 tests/test_progress.py                           | 112 -----
 tests/test_utils.py                              | 580 +---------------------
 tests/test_virt_bootstrap.py                     | 464 -----------------
 tests/virt_builder_source.py                     | 228 +++++++++
 20 files changed, 2371 insertions(+), 2240 deletions(-)
 create mode 100644 man/virt-bootstrap.pod
 create mode 100644 src/virtBootstrap/sources/virt_builder_source.py
 create mode 100644 tests/docker_source.py
 create mode 100644 tests/file_source.py
 delete mode 100644 tests/test_docker_source.py
 delete mode 100644 tests/test_file_source.py
 delete mode 100644 tests/test_progress.py
 delete mode 100644 tests/test_virt_bootstrap.py
 create mode 100644 tests/virt_builder_source.py

-- 
2.13.5




More information about the virt-tools-list mailing list