ribugent / gentoo-nfs-chroot

Provides a docker image for chrooting to remote Gentoo installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gentoo NFS chroot

This small project provides a docker image for chrooting to remote Gentoo installation

Why?

The reason is simple, I like a lot Gentoo, but one computer I own, is an old Atom 330 and updates takes a loooooong time. Investigating a little bit I found a post on Gentoo forums, and I decided to package it on a docker image, this will allow me to use on any system with docker.

Requirements

  • Gentoo installation exporting root via nfs
  • Docker
  • Remote and host cpu's with compatible instruction set

Configure nfs exports

Install nfs-utils and start nfs server:

emerge nfs-utils
/etc/init.d/nfs start

Edit /etc/exports and the adding the following line:

/ 192.168.0.0/24(rw,insecure,no_root_squash,sync,no_subtree_check,crossmnt)

NOTE Replace 192.168.0.0 with your network.

Re-export your nfs shares

exportfs -r

Run docker image

Execute:

docker run --rm -it --cap-add sys_admin --cap-add net_admin ribugent/gentoo-nfs-chroot <remote ip>

About

Provides a docker image for chrooting to remote Gentoo installation

License:GNU General Public License v3.0


Languages

Language:Shell 71.4%Language:Dockerfile 28.6%