A minimal OCI bundle based on Gentoo's stage3s.
This is enough to run simple Go binaries using the host's network namespace.
Run with:
$ make
which will setup a root filesystem by downloading the latest stage3
tarball from Gentoo's mirrors (the
downloads/stage3-amd64-current.tar.bz2 target), copying a minimal
subset of that tarball into rootfs/ (the rootfs
target), adjusting permissions (the setup target), and calling
runc (the run target). The setup and run steps require
elevated permissions, so the Makefile uses sudo.
If the runc command is not in you're superuser's PATH, you can
override the RUNC variable. For example:
$ make RUNC=$(command -v runc)
or:
$ make RUNC=./runc