von-network icon indicating copy to clipboard operation
von-network copied to clipboard

Local genesis file

Open Aberasturi opened this issue 4 years ago • 0 comments

Signed-off-by: Aberasturi [email protected] Way to start webserver using local genesis file #180 Running the web server in Docker against another ledger

GENESI_URL could be a http(s) URL or path to genesis file inside the container.

To use the path to genesis file, you need to use the protocol file:// in GENESIS_URL and the genesis file need to be inside the container. You have two options:

  • Attach a volumen (f.e ./tmp:/tmp) to webserver service in volume section inside docker-compose.yml file.
  • Copy the file inside container using docker cp .

For example to connect to the Sovrin Test Network:

./manage build
GENESIS_URL=https://raw.githubusercontent.com/sovrin-foundation/sovrin/master/sovrin/pool_transactions_sandbox_genesis
LEDGER_SEED=00000000000000000000000000000012
./manage start-web
./manage build
GENESIS_URL=file:///tmp/pool_transactions_sandbox_genesis
LEDGER_SEED=00000000000000000000000000000012
./manage start-web

Aberasturi avatar Oct 18 '21 10:10 Aberasturi