This lets us easily spawn one or multiple Docker containers
running the current local cjdns code. The compiled binaries
as well as everything in tools/ will be copied to /usr/bin/.
$ contrib/docker/run
$ docker exec -it cjdns cjdnslog
$ docker exec -it cjdns peerStats
For now, the image build is optimized for fast build times
instead of small image size.
The root Dockerfile enables automatic image builds by hub.docker.com.
The container's cjdroute.conf is persisted at and reused from
contrib/cjdns/cjdns[-<name>].
Note: under certain circumstances, /etc/cjdns won't be mounted and
thus config persistence is broken. See: https://github.com/docker/docker/issues/10595