Commit Graph

9 Commits

Author SHA1 Message Date
Vasco Santos
f98701507d chore: use latest in all instances 2021-06-09 15:39:34 +02:00
Vasco Santos
b58a032f0d chore: use latest go ipfs in docker compose 2021-06-09 15:35:14 +02:00
Hector Sanjuan
9012bfa73e Improve docker-compose.yml for testing
Makes sure it works well with the quickstart docs
2019-09-20 11:08:40 -04:00
Hector Sanjuan
bd6d01b32e Docker-compose: simplify, use CRDTs and mDNS
This makes the docker-compose.yml a way to get a test-example cluster up and
running. Since mDNS works now, cluster peers can auto-discover in the docker
network and do not need a command override to bootstrap.

More docs have been added to the top to make sure users use it to get up and
running with a test-cluster. Unnecessary port-exposures have been
removed. Cluster options have been set in a more canonical way using env vars.
2019-08-13 19:32:38 +02:00
Hector Sanjuan
063c5f1b78 Service: Select consensus on "init" (not on "daemon")
Fixes #865.

This makes the necessary changes so that consensu is selected on "init" with a
flag set, by default, to "crdt". This generates only a "crdt" or a "raft"
section, not both.

If the configuration file has a "raft" section, "raft" will be used to start
the daemon. If it has a "crdt" section, "crdt" will be used. If it has none or
both sections, an error will happen.

This also affects "state *" commands, which will now autoselect how to work
from the existing configuration.
2019-08-09 19:20:53 +02:00
Hector Sanjuan
6188d6ff52 service: Make --consensus a mandatory flag
It has a few implications to launch a raft peer when you wanted to do crdt and vice-versa.

Same when exporting and exporting states.

Users starting cluster peers should be explicit about their consensus choice.

Also, if we ever want to make `crdt` the default, we can't do that before
making `raft` non-default first. I don't like to break things but otherwise
the experience for new users wanting to try crdts might be aweful.
2019-07-26 18:15:41 +02:00
Hector Sanjuan
0bab730030 Set CLUSTER_SECRET from shell
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-24 21:20:53 +02:00
Hector Sanjuan
2a62edd32a Nitpicks
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-24 13:12:36 +02:00
Hector Sanjuan
e4fddbc4d7 Add a docker-compose.yml example with 2 peers and auto-bootstrap.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-23 18:25:43 +02:00