mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add some docs
This commit is contained in:
parent
c9380f128e
commit
13b3d6b464
55
TENDERMINT_INTEGRATION.rst
Normal file
55
TENDERMINT_INTEGRATION.rst
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
**********************
|
||||||
|
Tendermint Integration
|
||||||
|
**********************
|
||||||
|
Quick reference for developers working on the Tendermint integration in
|
||||||
|
BigchainDB.
|
||||||
|
|
||||||
|
Running a single node with ``docker-compose``
|
||||||
|
=============================================
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ docker-compose -f docker-compose.tendermint.yml up bdb
|
||||||
|
|
||||||
|
The above command will launch all 3 main required services/processes:
|
||||||
|
|
||||||
|
* ``mongodb``
|
||||||
|
* ``tendermint``
|
||||||
|
* ``bigchaindb``
|
||||||
|
|
||||||
|
To follow the logs of the ``tendermint`` service:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ docker-compose -f docker-compose.tendermint.yml logs -f tendermint
|
||||||
|
|
||||||
|
Simple health check:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ docker-compose -f docker-compose.tendermint.yml up curl-client
|
||||||
|
|
||||||
|
Post and retrieve a transaction -- copy/paste a driver basic example of a
|
||||||
|
``CREATE`` transaction:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ docker-compose -f docker-compose.tendermint.yml run --rm driver ipython
|
||||||
|
|
||||||
|
.. todo:: small python script to post and retrieve a transaction.
|
||||||
|
|
||||||
|
|
||||||
|
Running a 4-node cluster with ``docker-compose``
|
||||||
|
================================================
|
||||||
|
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ docker-compose -f docker-compose.network.yml up -d bdb-one bdb-two bdb-three bdb-four
|
||||||
|
|
||||||
|
|
||||||
|
Simple health check:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ docker-compose -f docker-compose.network.yml up curl-client
|
27
network/health-check.sh
Normal file
27
network/health-check.sh
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
echo "########################################################################"
|
||||||
|
echo "# #"
|
||||||
|
echo "# NODE ONE #"
|
||||||
|
echo "# #"
|
||||||
|
echo "########################################################################"
|
||||||
|
curl http://tendermint-one:46657/abci_query && curl http://bdb-one:9984/
|
||||||
|
|
||||||
|
echo "########################################################################"
|
||||||
|
echo "# #"
|
||||||
|
echo "# NODE TWO #"
|
||||||
|
echo "# #"
|
||||||
|
echo "########################################################################"
|
||||||
|
curl http://tendermint-two:46657/abci_query && curl http://bdb-two:9984/
|
||||||
|
|
||||||
|
echo "########################################################################"
|
||||||
|
echo "# #"
|
||||||
|
echo "# NODE THREE #"
|
||||||
|
echo "# #"
|
||||||
|
echo "########################################################################"
|
||||||
|
curl http://tendermint-three:46657/abci_query && curl http://bdb-three:9984/
|
||||||
|
|
||||||
|
echo "########################################################################"
|
||||||
|
echo "# #"
|
||||||
|
echo "# NODE FOUR #"
|
||||||
|
echo "# #"
|
||||||
|
echo "########################################################################"
|
||||||
|
curl http://tendermint-four:46657/abci_query && curl http://bdb-four:9984/
|
Loading…
x
Reference in New Issue
Block a user