... | ... | @@ -5,7 +5,20 @@ |
|
|
3. If you don't like docker "because of reasons" you can use [this](https://gitlab.syncad.com/hive/hivemind/-/wikis/Testing-hivemind#preparing-hived-node) howto instead
|
|
|
|
|
|
## Preparing `hived` node
|
|
|
1. Clone latest sources of the `hivemind`
|
|
|
1. Download required files and place them in directory with your testing environment
|
|
|
* [postgresql-10.conf](uploads/d906de13eefc26fe3dcb6c234e97884e/postgresql-10.conf)
|
|
|
* [postgresql-12.conf](uploads/194ff1b682960b452aa417edf1f13bd3/postgresql-12.conf)
|
|
|
* [dot_env](uploads/db370a3638dc913d7752ca40e32bb2f3/dot_env) and save as `.env`
|
|
|
* [block_log](https://gtg.openhive.network/get/blockchain/block_log.5M) and save as `block_log`
|
|
|
|
|
|
2. Edit `.env` and substitute <path_to_your_data_dir> with correct path
|
|
|
|
|
|
3. Source `.env` file using
|
|
|
```bash
|
|
|
$ source .env
|
|
|
```
|
|
|
|
|
|
4. Clone latest sources of the `hivemind`
|
|
|
|
|
|
```shell
|
|
|
$ cd /tmp #note this should be your testing environment directory
|
... | ... | @@ -15,6 +28,22 @@ $ git checkout develop |
|
|
$ git submodule update --init --recursive
|
|
|
```
|
|
|
|
|
|
5. Build and run `hived` docker image
|
|
|
```bash
|
|
|
$ docker-compose -f docker-compose-ci.yml up -d hived-node
|
|
|
```
|
|
|
|
|
|
6. You can inspect image status with
|
|
|
```bash
|
|
|
docker-compose -f docker-compose-ci.yml logs hived-node
|
|
|
```
|
|
|
|
|
|
7. Wait for `hived` node to finish replay
|
|
|
```
|
|
|
hived-node_1 | 1893033ms transaction_status_plugin.cpp:331 plugin_startup ] transaction_status: plugin_startup() end
|
|
|
hived-node_1 | 1893033ms webserver_plugin.cpp:231 operator() ] start listening for http requests
|
|
|
```
|
|
|
|
|
|
## Preparing `postgresql` database
|
|
|
|
|
|
1. Install `postgresql` package
|
... | ... | @@ -65,7 +94,7 @@ To run benchmarks enter `hivemind` source directory and run benchmarks using `ci |
|
|
|
|
|
```shell
|
|
|
$ cd /tmp/hivemind
|
|
|
$ scripts/ci_start_api_benchmarks.sh 127.0.0.1 8080 3
|
|
|
$ scripts/ci_start_api_benchmarks.sh 127.0.0.1 8080 5
|
|
|
```
|
|
|
|
|
|
Where `127.0.0.1` is hivemind instance IP, and `8080` is hivemind instance port. `3` is the number of iterations for benchmarks. |
|
|
\ No newline at end of file |
|
|
Where `127.0.0.1` is hivemind instance IP, and `8080` is hivemind instance port. `5` is the number of iterations for benchmarks. |
|
|
\ No newline at end of file |