btcinfo  

Hic inserere motto

Docker gentoo env recipe

May 10, 2019 — shinohai

This page is just a note on reliable ways to get a working gentoo environment using Dockerfiles. Useful mainly for making decent working shell that you don't care about for testing things. :)

The recipe can also easily be modified to use own stage3 and not be reliant on dockerhub, though abuse of the autobuild scripts sometimes spawns a shellbot over irc.

docker pull btcinfo/stage3-gentoo-amd64 docker run -it btcinfo/stage3-gentoo-amd64

This gives you a root shell

37b0f185b13d ~ #

Populate the portage tree with the latest official portage snapshot, or use your own archived snapshot.

cd usr/ wget -c http://distfiles.gentoo.org/snapshots/portage-latest.tar.xz tar xvf portage-latest.tar.xz

You can now emerge the packages you need and build from sources. Do what thou will.

Tags: News, UNIX