-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from bigchaindb/tendermint-tx-fixed
Update driver in order to be compatible with BigchainDB2.0
- Loading branch information
Showing
19 changed files
with
261 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,10 @@ | ||
{ | ||
"presets": [ | ||
"@ava/stage-4", | ||
"@ava/transform-test-files", | ||
"es2015-no-commonjs" | ||
], | ||
"presets": ["env"], | ||
|
||
"plugins": [ | ||
"transform-export-extensions", | ||
"transform-object-assign", | ||
"transform-object-rest-spread" | ||
], | ||
"sourceMaps": true, | ||
|
||
"env": { | ||
"bundle": { | ||
"plugins": [ | ||
["transform-runtime", { | ||
"polyfill": true, | ||
"regenerator": false | ||
}] | ||
] | ||
}, | ||
"cjs": { | ||
"plugins": [ | ||
"add-module-exports", | ||
"transform-es2015-modules-commonjs" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
sudo apt-get update | ||
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce | ||
|
||
sudo rm /usr/local/bin/docker-compose | ||
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose | ||
chmod +x docker-compose | ||
sudo mv docker-compose /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e -x | ||
|
||
docker-compose up -d bigchaindb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e -x | ||
|
||
docker-compose build --no-cache bigchaindb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e -x | ||
|
||
docker-compose run --rm js-bigchaindb-driver yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.6 | ||
|
||
RUN apt-get update && apt-get install -y vim | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN pip install --upgrade pip ipdb ipython | ||
|
||
COPY . /usr/src/app/ | ||
|
||
RUN pip install git+https://github.com/bigchaindb/bigchaindb.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This is a TOML config file. | ||
# For more information, see https://github.com/toml-lang/toml | ||
|
||
proxy_app = "tcp://bigchaindb:46658" | ||
moniker = "anonymous" | ||
fast_sync = true | ||
db_backend = "leveldb" | ||
log_level = "state:debug,*:error" | ||
|
||
[consensus] | ||
create_empty_blocks = false | ||
|
||
[rpc] | ||
laddr = "tcp://0.0.0.0:46657" | ||
|
||
[p2p] | ||
laddr = "tcp://0.0.0.0:46656" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: '2.1' | ||
|
||
services: | ||
mongodb: | ||
image: mongo:3.4.13 | ||
ports: | ||
- "27017" | ||
command: mongod | ||
bigchaindb: | ||
depends_on: | ||
- mongodb | ||
- tendermint | ||
image: bigchaindb/bigchaindb:master | ||
environment: | ||
BIGCHAINDB_DATABASE_HOST: mongodb | ||
BIGCHAINDB_DATABASE_PORT: 27017 | ||
BIGCHAINDB_SERVER_BIND: 0.0.0.0:9984 | ||
BIGCHAINDB_WSSERVER_HOST: 0.0.0.0 | ||
BIGCHAINDB_TENDERMINT_HOST: tendermint | ||
BIGCHAINDB_TENDERMINT_PORT: 46657 | ||
ports: | ||
- "9984:9984" | ||
- "9985:9985" | ||
- "46658" | ||
healthcheck: | ||
test: ["CMD", "bash", "-c", "curl http://bigchaindb:9984 && curl http://tendermint:46657/abci_query"] | ||
interval: 3s | ||
timeout: 5s | ||
retries: 3 | ||
command: -l DEBUG start | ||
tendermint: | ||
image: tendermint/tendermint:0.12 | ||
volumes: | ||
- ./compose/tendermint/tmdata/config.toml:/tendermint/config.toml | ||
entrypoint: '' | ||
ports: | ||
- "46656" | ||
- "46657" | ||
command: bash -c "tendermint init && tendermint node" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.