https://github.com/cbosdo/virt-bootstrap
https://github.com/cbosdo/virt-bootstrap
container rootfs virtualization
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cbosdo/virt-bootstrap
- Owner: cbosdo
- License: gpl-3.0
- Created: 2017-03-07T17:06:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T13:31:39.000Z (almost 9 years ago)
- Last Synced: 2025-10-12T04:06:35.431Z (9 months ago)
- Topics: container, rootfs, virtualization
- Language: Python
- Size: 81.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
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
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](https://pypi.python.org/pypi/coverage/) is installed, you can generate report using:
coverage run --source=virtBootstrap ./setup.py test
coverage report