Use FreeBSD Host poudriere repositories inside a jail
WARNING: the following are my personal notes. Use at your own risk!
Create jail mountpoint from FreeBSD Host (or inside jail):
mkdir -p /usr/jails/www/var/ports/packages/
Create jail fstab file on FreeBSD Host:
# cat /etc/fstab.www /usr/local/poudriere/data/packages/13amd64-www-www/ /usr/jails/www/var/ports/packages/ nullfs ro 0 0
Add following option to jail configuration under /etc/jail.conf.d:
# grep fstab www.conf mount.fstab = "/etc/fstab.www";
Use poudriere mounted repository inside jail:
mkdir -p /usr/local/etc/pkg/repos root@www:/usr/local/etc/pkg/repos # cat www.conf proxy: { url : "file:///var/ports/packages", enable : yes, signature_type : NONE, mirror_type : NONE } FreeBSD: { enabled: no } root@www:/usr/local/etc/pkg/repos # pkg update root@www:~ # pkg install `pkg search -g '*' | awk '{print $1}'`