Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local genesis file #181

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

Conversation

Aberasturi
Copy link
Contributor

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

WadeBarnes and others added 30 commits August 26, 2021 11:12
- Add support for restoring an archive to a named volume.
- Add support for mounting a named volume into a `analysis` instance of the `von-network-base` image.
- Add the `sst_dump` tool to the bin folder to support analysis of RocksDB database (`*.sst`) files.
- Update `read_ledger` to the latest version from `indy-node`.

Signed-off-by: Wade Barnes <[email protected]>
All of the updates are contained in the `bcgovimages/von-image:node-1.12-4` base image.
Changes include updates to fix a crashing issue on node startup with large ledger sizes.

Signed-off-by: Wade Barnes <[email protected]>
Add support for backup and restore.
Upgrade to indy-node 1.12.4 and add ledger debug support
- Fix for build issue when the sst_dump binary is included at the `von-network` level.
- sst_dump is now included in the `bcgovimages/von-image:node-1.12-4` image.

Signed-off-by: Wade Barnes <[email protected]>
Move sst_dump into the bcgovimages/von-image:node-1.12-4 base image
- Updates the syntax for setting logging levels and binding volumes.
- resolves bcgov#161

Signed-off-by: Wade Barnes <[email protected]>
Fixes for the recent version(s) of docker compose
- Dynamically detect the version of docker compose and adjust the calling syntax appropriately.
- resolves bcgov#170

Signed-off-by: Wade Barnes <[email protected]>
Add support for existing and new docker compose syntax
- A few explicit calls to docker compose were missed in the previous commit.

Signed-off-by: Wade Barnes <[email protected]>
Update the remaining direct calls to docker compose
Fix 'command not found' errors reported by ./manage -h
Add documentation and examples for the indy-cli
Signed-off-by: Wade Barnes <[email protected]>
Add a security statement regarding seeds and keys.
Signed-off-by: Aberasturi <[email protected]>
Signed-off-by: Wade Barnes <[email protected]>
- Add the external (downloaded) script to the gitignore file.

Signed-off-by: Wade Barnes <[email protected]>
Add generate genesis files command.
- Networking changes introduced in Docker 4.1.x and forward on Windows and MAC stop the direct use of the internal docker host IP returned by the `docker run --rm --net=host eclipse/che-ip` process.  On Windows and MAC `host.docker.internal` needs to be used for internal connections between containers.

Signed-off-by: Wade Barnes <[email protected]>
Signed-off-by: Wade Barnes <[email protected]>
Signed-off-by: Wade Barnes <[email protected]>
Add support for changes to internal Docker networking.
WadeBarnes and others added 4 commits December 8, 2021 10:31
- This is an update to the previous commit to update the support for Docker networking.  The `getDockerHost` has been pulled out and placed in a central location where it can be updated as needed rather than having to update dozens of scripts the next time there is a change.

Signed-off-by: Wade Barnes <[email protected]>
- resolves bcgov#133

Signed-off-by: Wade Barnes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants