Ubuntu image builder
This tool is used to build Ubuntu images. Currently it only builds Snappy images from a model assertion, but it will be generalized to build more (eventually all) Ubuntu images.
Ubuntu 16.04 (Xenial Xerus) is the minimum platform requirement, but Ubuntu 18.04 (Bionic Beaver) or newer is recommended. Python 3.5 is the minimum Python version required. All required third party packages are available in the Ubuntu archive.
If you want to run the test suite locally, you should install all the build dependencies named in the debian/control file. The easiest way to do that is to run:
$ sudo apt build-dep ./
from the directory containing the debian subdirectory. Alternatively of course, you can just install the packages named in the Build-Depends field.
ubuntu-image is licensed under the terms of the GPLv3 and Copyright by
copyright Barry Warsaw and licensed under the terms of the Apache License,
- Project home: https://github.com/CanonicalLtd/ubuntu-image
- Report bugs at: https://bugs.launchpad.net/ubuntu-image
- Git clone: https://github.com/CanonicalLtd/ubuntu-image.git
- Documentation: TBD
- Manual page: man ubuntu-image (https://github.com/CanonicalLtd/ubuntu-image/blob/master/ubuntu-image.rst)
gadget.yaml specification has moved to the snapcraft forum.
You'll need the tox tool to run the test suite (see above for testing requirements). You can run the full test suite, including coverage and code quality tests via:
You can run individual tests like this:
$ tox -e py37-nocov -- -P <pattern>
where <pattern> is a Python regular expression matching a test name, e.g.:
$ tox -e py37-nocov -- -P test_smoke
Pull requests run the same test suite that archive promotion (i.e. -proposed
to release pocket) runs. You can reproduce this locally by building the
source package (with
gbp buildpackage -S) and running:
$ autopkgtest ubuntu-image_1.9+20.04ubuntu1.dsc -- schroot focal-amd64
with changes to the version number and Ubuntu distroseries as appropriate.