Moncic-CI supports reading defaults from a configuration file. Currently only
imagedir
is supported, which provides a default for the --imagedir
command
line argument.
Moncic-CI looks in these locations in sequence to find a moncic-ci.yaml
configuration file, and the first location where a file is found gives the file
that is used:
- In
.git/moncic-ci.yaml
of the current git repository. Moncic-CI usesgit rev-parse --git-dir
to find the right.git
directory - In
$XDG_CONFIG_HOME/moncic-ci/moncic-ci.yaml
.XDG_CONFIG_HOME
defaults to~/.config
. - In
/etc/moncic-ci.yaml
Example:
imagedir: ~/.local/share/moncic-ci/
The keywords currently supported are:
imagedir
: directory that contains OS images. Note that this needs to be on a BTRFS file system. It will be expanded withos.path.expanduser
, so~
and~user
notations are supported.imageconfdirs: List[str]
: directories where image configuration can stored, if not found inimagedir
. They will be expanded withos.path.expanduser
, so~
and~user
notations are supported.compression
: btrfs compression attribute to set on OS image subvolumes when they are created. The value is the same as can be set bybtrfs property set compression
. By default, nothing is set.auto_sudo
: Automatically reexec with sudo if permissions are needed. Default: truetmpfs
: Use a tmpfs overlay for ephemeral containers instead of btrfs snapshots. Default: false, or true if OS images are not on btrfsdeb_cache_dir: Optional[str]
Directory where.deb
files are cached between invocations. Default:~/.cache/moncic-ci/debs
extra_packages_dir
: Directory where extra packages, if present, are added to package sources in containers. Default: None