xref: /freebsd/release/tools/oci-image-runtime.conf (revision df21a004be237a1dccd03c7b47254625eea62fa9)
1#! /bin/sh
2
3# Build Open Container Initiative (OCI) container image suitable as a base for
4# shell-based workloads. This adds FreeBSD-runtime, FreeBSD-pkg-bootstrap and a
5# handful of others packages to create a small image which can be easily
6# extended by installing packages.
7
8OCI_BASE_IMAGE=dynamic
9
10oci_image_build() {
11	set_cmd ${workdir} /bin/sh
12	# The static image installed termcap.small into /usr/share/misc/termcap
13	# and we are replacing it with the full termcap file. We remove the
14	# small one first to avoid creating a .pkgsave file.
15	rm ${workdir}/rootfs/usr/share/misc/termcap
16	install_packages ${abi} ${workdir} \
17			 FreeBSD-runtime \
18			 FreeBSD-certctl \
19			 FreeBSD-kerberos-lib \
20			 FreeBSD-libarchive \
21			 FreeBSD-libexecinfo \
22			 FreeBSD-libucl \
23			 FreeBSD-fetch \
24			 FreeBSD-rc \
25			 FreeBSD-pkg-bootstrap \
26			 FreeBSD-mtree
27}
28