Skip to content

virt-manager/virt-bootstrap

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Changed in version 3.11: codeset parameter is removed.
https://docs.python.org/3.11/library/gettext.html

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
7704260

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
run
 
 
 
 
 
 

virt-bootstrap is a tool providing an easy way to setup the root file system for libvirt-based containers.

It allows to use either a tarball containing the file system or an image on a docker registry and unpacks it either as a folder or in a qcow2 image with backing chains to mimic the docker layers.

Dependencies

  • python 2 or 3
  • skopeo
  • virt-sandbox
  • libguestfs python binding
  • python passlib module
  • python mock module (for tests only)

Hacking

To test changes without installing the package in your machine, use the run script. For example to run virt-bootstrap, use a command like the following one:

./run src/virtBootstrap/virt_bootstrap.py --help

The following commands will be useful for anyone writing patches:

./setup.py test      # Run local unit test suite
./setup.py pylint    # Run a pylint script against the codebase

Any patches shouldn't change the output of 'test' or 'pylint'. The 'pylint' requires pylint and pycodestyle to be installed.

If coverage is installed, you can generate report using:

coverage run --source=virtBootstrap ./setup.py test
coverage report