change root directory ! LIBRARY Standard C Library (libc, -lc) ! SYNOPSIS #include <unistd.h> ! int chroot(const char *dirname); ! DESCRIPTION The dirname argument is the address of the pathname of a directory, ter‐ minated by an ASCII NUL. The chroot() system call causes dirname to become the root directory, that is, the starting point for path searches of pathnames beginning with ‘/’. 1982: Stone Age
clone new container from IMG 2. copy build dir -dir to container 3. run COMMAND… inside container, in build dir 4. commit container’s rootfs without build dir as new image https://github.com/3ofcoins/jetpack/
COMMAND is toolchain-agnostic, it can be: ./setup.sh, make build, chef-solo… – Doesn’t introduce a new file format – A bsdmake include file is provided, but not required https://github.com/3ofcoins/jetpack/
separation (VIMAGE) – Resource limiting (RCTL) – Firewall/NAT rules management (pf) – Image discovery & distribution – A LOT MORE… it’s still a prototype! https://github.com/3ofcoins/jetpack/