...
docker run --name postgres_tmp \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
--network=host \
-d postgres \
-c 'max_prepared_transactions=100' \
-c 'port=5432'
The next thing is to change db's host in config file, you can do its with:
sed -i 's/some-postgres/localhost/g' example/config.docker
Then you can just run irohad
command.Then you can just run irohad
command.
B) Using Iroha with RocksDB:
Instead of postgres you can use RocksDB. In example
directory there is sample config, which is using RocksDB, but path to database must be changed, e.g.:
sed -i 's_/path/to/wsv/folder_/home/rocksdb_g' example/config.sample
The next step is to use that config when running irohad
:
./build/bin/irohad \
--config $PWD/example/config.sample \
--keypair_name $PWD/example/node0 \
-genesis_block $PWD/example/genesis.block \
-reuse_state