hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

docker: add dockerfile and entrypoint script #69

Closed ghost closed 8 years ago

ghost commented 8 years ago

Updated! cc @cjdelisle

commit 56bff807836b99bd27019134aa936145137a2837 Author: Lars Gierth larsg@systemli.org Date: Fri Oct 2 03:39:10 2015 +0200

tools: resolve cross-dependencies

They were all over the place between tools/, contrib/, and node_build/.

27 files changed, 602 insertions(+), 602 deletions(-)

commit edee14643c85ecfa18df2b881ebc7b75931b0d0e Author: Lars Gierth larsg@systemli.org Date: Tue Oct 13 02:36:53 2015 +0200

tools: make jshint happy

2 files changed, 18 insertions(+), 18 deletions(-)

commit 5e6c14833f2bcba4f75469f61edfbb38c0bed79e Author: Lars Gierth larsg@systemli.org Date: Fri Oct 2 02:41:57 2015 +0200

docker: add dockerfile and entrypoint script

This lets us easily spawn one or multiple Docker containers
running the current local cjdns code.

    $ contrib/docker/cjdns.sh run
    $ contrib/docker/cjdns.sh
    unknown command:
    try: contrib/docker/cjdns.sh run|peerstats|dumptable|sesionstats|logs [<name>]

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

3 files changed, 100 insertions(+)

commit c3f3eaebe1ea9e912de37ed8ea28705eba95786b Author: Lars Gierth larsg@systemli.org Date: Tue Oct 13 02:51:15 2015 +0200

ci: explicitly disable SecComp

Travis CI's new container-based infrastructure provides an
outdated libc, which doesn't have SIGSYS signal info.

1 file changed, 5 insertions(+), 2 deletions(-)

ghost commented 8 years ago

Updated once more:

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