-
Notifications
You must be signed in to change notification settings - Fork 12
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 #41 from bigchaindb/updates
Expose driver, models moved to models object
- Loading branch information
Showing
23 changed files
with
162 additions
and
55 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 |
---|---|---|
@@ -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-driver-orm npm run 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
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" |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,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
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