Name: sawtooth-next-directory
Owner: Hyperledger
Description: null
Created: 2017-11-16 20:58:21.0
Updated: 2018-05-21 20:35:48.0
Pushed: 2018-05-01 16:02:29.0
Homepage: null
Size: 17398
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repo contains multiple components which together with a Hyperledger Sawtooth validator, will comprise the “blockchain” components of the NEXT Identity Platform project. The components include:
The easiest way to run these components is with Docker. To start these components, first install Docker for your platform and clone this repo.
Next, create a server/config.py
file based off the example at
server/config.py.example
. Pay special attention to the secret keys at the
bottom of the example file. While other settings have defaults and can be
omitted, these keys have no defaults and must be provided to run the server.
The examples listed are insecure, and should be replaced before deployment.
Once there is a config file in place, you can simply run:
er-compose up
This will build all components, start them in individual Docker containers, and download and run the necessary Sawtooth components. Once complete, the REST API will be available at http://localhost:8000.
Later, if the repo is updated, the local components will need to be rebuilt,
which can be accomplished using the --build
flag:
er-compose up --build
Once all the docker containers are running without error, see ui/readme.md for configuring / running the UI server.
Docker containers are also available for developers, and are marked with a
-dev
tag in their filename. There are a few differences between how these
containers work compared to the defaults:
To start the dev containers, from the root project directory run:
build -p
er-compose -f docker-compose-dev.yaml up
* Dependencies that may need to be locally installed include Sawtooth
dependencies like thesawtooth_sdk
, as well as some pip3
modules.
Tests can be run using the run_docker_test
script, with the desired
docker-compose file as an argument. For example:
run_docker_test integration_tests/blockchain/docker-compose.yaml
run_docker_test integration_tests/api/docker-compose.yaml
Hyperledger Sawtooth NEXT Identity Platform software is licensed under the Apache License Version 2.0 software license.