- Add complete pytest testing framework with conftest.py and test files - Add performance monitoring and benchmarking capabilities - Add plugin system with ccache plugin example - Add comprehensive documentation (API, deployment, testing, etc.) - Add Docker API wrapper for service deployment - Add advanced configuration examples - Remove old wget package file - Update core modules with enhanced functionality
106 lines
2.4 KiB
YAML
106 lines
2.4 KiB
YAML
# Advanced deb-mock configuration example
|
|
# Demonstrates parallel builds and advanced mount management
|
|
|
|
# Basic chroot configuration
|
|
chroot_name: "debian-trixie-amd64-advanced"
|
|
architecture: "amd64"
|
|
suite: "trixie"
|
|
output_dir: "./output"
|
|
keep_chroot: false
|
|
verbose: true
|
|
debug: false
|
|
|
|
# Chroot paths
|
|
basedir: "/var/lib/deb-mock"
|
|
chroot_dir: "/var/lib/deb-mock/chroots"
|
|
chroot_config_dir: "/etc/schroot/chroot.d"
|
|
chroot_home: "/home/build"
|
|
|
|
# Parallel build configuration
|
|
parallel_builds: 4 # Number of parallel chroots
|
|
parallel_chroot_prefix: "parallel"
|
|
parallel_build_timeout: 7200 # 2 hours
|
|
parallel_build_cleanup: true
|
|
|
|
# Advanced mount management
|
|
mount_proc: true
|
|
mount_sys: true
|
|
mount_dev: true
|
|
mount_devpts: true
|
|
mount_tmp: true
|
|
mount_home: false
|
|
|
|
# Tmpfs configuration
|
|
use_tmpfs: true
|
|
tmpfs_size: "4G"
|
|
|
|
# Custom bind mounts
|
|
bind_mounts:
|
|
- host: "/usr/share/doc"
|
|
chroot: "/usr/share/doc"
|
|
options: "ro"
|
|
- host: "/var/cache/apt/archives"
|
|
chroot: "/var/cache/apt/archives"
|
|
options: "ro"
|
|
- host: "/tmp/deb-mock-sources"
|
|
chroot: "/tmp/sources"
|
|
options: ""
|
|
|
|
# Tmpfs mounts for performance
|
|
tmpfs_mounts:
|
|
- chroot: "/tmp/build"
|
|
size: "2G"
|
|
options: "noexec,nosuid"
|
|
- chroot: "/var/cache/ccache"
|
|
size: "1G"
|
|
options: ""
|
|
|
|
# Overlay mounts (requires overlayfs support)
|
|
overlay_mounts:
|
|
- lower: "/var/lib/deb-mock/base-chroot"
|
|
upper: "/var/lib/deb-mock/overlay-upper"
|
|
work: "/var/lib/deb-mock/overlay-work"
|
|
chroot: "/var/lib/deb-mock/overlay-chroot"
|
|
|
|
# Advanced chroot features
|
|
use_namespaces: false
|
|
uid_mapping: null
|
|
gid_mapping: null
|
|
capabilities: []
|
|
seccomp_profile: null
|
|
|
|
# UID/GID management
|
|
chroot_user: "build"
|
|
chroot_group: "build"
|
|
chroot_uid: 1000
|
|
chroot_gid: 1000
|
|
use_host_user: false
|
|
copy_host_users: []
|
|
preserve_uid_gid: true
|
|
|
|
# Build optimization
|
|
use_root_cache: true
|
|
root_cache_dir: "/var/cache/deb-mock/root-cache"
|
|
root_cache_age: 7
|
|
use_package_cache: true
|
|
package_cache_dir: "/var/cache/deb-mock/package-cache"
|
|
use_ccache: true
|
|
ccache_dir: "/var/cache/deb-mock/ccache"
|
|
|
|
# Network configuration
|
|
use_host_resolv: true
|
|
enable_network: true
|
|
http_proxy: null
|
|
https_proxy: null
|
|
no_proxy: null
|
|
|
|
# Mirror configuration
|
|
mirror: "http://deb.debian.org/debian/"
|
|
security_mirror: "http://security.debian.org/debian-security"
|
|
backports_mirror: "http://deb.debian.org/debian/"
|
|
|
|
# Bootstrap chroot support
|
|
use_bootstrap_chroot: false
|
|
bootstrap_chroot_name: null
|
|
bootstrap_arch: null
|
|
bootstrap_suite: null
|