Skip to content

wking/oci-gentoo-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal OCI bundle based on Gentoo's stage3s.

This is enough to run simple Go binaries using the host's network namespace.

Usage

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors