Custom NodeOS distributions can be build easily with a Dockerfile.
Start from the nodeos/kernel
image which consists of only the linux kernel,
required system libraries, the nodeos executable, and a few NodeOS essential packages.
Generally you'll want to customize your build by adding additional RUN npkg install <PKG>
lines.
Build your box with sudo docker build -t "mybuild" .
from the same directory as your Dockerfile
.
Run the resulting box with sudo docker run -t -i mybuild
.
The default behaviour of NodeOS is to boot into a shell after starting the init daemon.
You can customize boot behaviour by passing extra arguments to docker.
For example, start the default run-level with
sudo docker run -t -i mybuild npkg start nodeos-default