git-server#

A git server, as a unikernel: it serves a small repository over both smart-HTTP and SSH.
The repository is assembled at boot -- a README is written into a fresh store
and committed -- then served read-only. A stock git client clones it over
either transport. Pairs with the git-client. The store is a notafs filesystem
on a block device (scratch space for the git objects); the content itself comes
from code, so the served repo is built in memory at boot.
Run#
mrg run --disk repo:repo -p 8080:8080 -p 2222:2222 \
unikernels/bin/storage/git-server -- --ipv4-gateway 10.0.0.1
then, from the host:
git clone http://127.0.0.1:8080/
git clone ssh://git@127.0.0.1:2222/