von-network
von-network copied to clipboard
Local genesis file
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
webserverservice in volume section insidedocker-compose.ymlfile. - 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