Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.18 KB

README.md

File metadata and controls

50 lines (35 loc) · 2.18 KB

Scripts for running d-voting

This is a repo with some bare scripts to show how to start, initialize, and handle nodes. They are not at all prepared in any way but come straight from the server.

Starting

To start the nodes, we use the following two docker-compose files:

All docker-compose files depend on a working traefik which is capable of handling the TLS connections and forwards it to the nodes. Please adjust the names in the docker-compose files and in the .env to correctly reflect your infra.

In addition, the nodes need a .env file, which is similar to env.example. Look at the env.example file for more information.

Initializing

To initialize, I use a couple of scripts in the init directory:

Running nodes

As all the docker-compose files store the data in the data/ directories, there are some simple scripts to handle that data:

  • save.sh takes a word as argument, stops docker, copies data to data.$1
  • reset.sh takes a word as argument, stops docker, deletes data, copies data.$1 to data and restarts docker
  • cycle.sh stops docker, pulls updates for images, and starts docker

License

This is all licensed under an MIT license.

(c) 2024 by C4DT.epfl.ch