tree: f4b3566a5a569d1f04ad924083a07b31815567b8 [path history] [tgz]
  1. .gitignore
  2. Makefile
  5. serve-rpi-image/

Serving image is based off of [], which has good documentation for the various settings.

This is intended to be run in the Skolo on rpi-master/spare.

First time setup to make the nfs kernel modules available:

sudo modprobe nfs
sudo modprobe nfsd

Authenticate with GCS so the docker image can be pulled:

python | docker login -u oauth2accesstoken --password-stdin

docker run -d --privileged \
-p $EXPORTED_IP:2049:2049   -p $EXPORTED_IP:2049:2049/udp \
-p $EXPORTED_IP:111:111     -p $EXPORTED_IP:111:111/udp     \
-p $EXPORTED_IP:32765:32765 -p $EXPORTED_IP:32765:32765/udp \
-p $EXPORTED_IP:32767:32767 -p $EXPORTED_IP:32767:32767/udp \

Nothing major changes on the cmdline.txt of the RPIs

smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/nfs nfsroot=,nfsvers=3 ip=192.168.1.YYY: elevator=deadline rootwait

Where YYY and NNN are statically configured for each RPI.

To build the image (to use a different rpi image, change Makefile):

make build

To publish the image as latest and VERSION (see Makefile):

make push

To debug the image locally (note we need to override the entrypoint to actually get a shell):

docker run -it --privileged --entrypoint /bin/bash serve-rpi-image