Skip to content

c4dt/dela-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages