mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-21 17:26:56 +01:00
merge
This commit is contained in:
commit
bd8fbec5fd
9
.ci/travis-before-install.sh
Executable file
9
.ci/travis-before-install.sh
Executable file
@ -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
|
5
.ci/travis-before-script.sh
Executable file
5
.ci/travis-before-script.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e -x
|
||||
|
||||
docker-compose up -d bigchaindb
|
5
.ci/travis-install.sh
Executable file
5
.ci/travis-install.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e -x
|
||||
|
||||
docker-compose build --no-cache bigchaindb js-bigchaindb-driver
|
5
.ci/travis_script.sh
Executable file
5
.ci/travis_script.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e -x
|
||||
|
||||
docker-compose run --rm js-bigchaindb-driver yarn test
|
25
.travis.yml
25
.travis.yml
@ -5,23 +5,24 @@ services:
|
||||
|
||||
language: node_js
|
||||
|
||||
node_js: 7
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
env:
|
||||
global:
|
||||
- DOCKER_COMPOSE_VERSION=1.19.0
|
||||
|
||||
before_install:
|
||||
- docker run -d -p 27017:27017 mongo:3.4 --replSet=bigchain-rs
|
||||
- docker run -d -p 9984:9984
|
||||
-e BIGCHAINDB_KEYPAIR_PUBLIC=8wHUvvraRo5yEoJAt66UTZaFq9YZ9tFFwcauKPDtjkGw
|
||||
-e BIGCHAINDB_KEYPAIR_PRIVATE=5C5Cknco7YxBRP9AgB1cbUVTL4FAcooxErLygw1DeG2D
|
||||
-e BIGCHAINDB_DATABASE_BACKEND=mongodb
|
||||
-e BIGCHAINDB_DATABASE_HOST=172.17.0.1
|
||||
bigchaindb/bigchaindb:master
|
||||
start
|
||||
- gem install cowsay
|
||||
- npm install -g codecov
|
||||
- .ci/travis-before-install
|
||||
|
||||
install:
|
||||
- .ci/travis-install.sh
|
||||
|
||||
before_script:
|
||||
- .ci/travis-before-script.sh
|
||||
- gem install cowsay
|
||||
- npm install -g codecov
|
||||
|
||||
script: yarn test
|
||||
|
||||
|
17
compose/tendermint/tmdata/config.toml
Normal file
17
compose/tendermint/tmdata/config.toml
Normal file
@ -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"
|
@ -10,12 +10,7 @@ services:
|
||||
depends_on:
|
||||
- mongodb
|
||||
- tendermint
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./compose/Dockerfile
|
||||
args:
|
||||
branch: master
|
||||
backend: localmongodb
|
||||
image: bigchaindb/bigchaindb:master
|
||||
environment:
|
||||
BIGCHAINDB_DATABASE_HOST: mongodb
|
||||
BIGCHAINDB_DATABASE_PORT: 27017
|
||||
@ -24,15 +19,15 @@ services:
|
||||
BIGCHAINDB_TENDERMINT_HOST: tendermint
|
||||
BIGCHAINDB_TENDERMINT_PORT: 46657
|
||||
ports:
|
||||
- "9984"
|
||||
- "9985"
|
||||
- "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: bigchaindb -l DEBUG start
|
||||
command: -l DEBUG start
|
||||
tendermint:
|
||||
image: tendermint/tendermint:0.12
|
||||
volumes:
|
||||
|
Loading…
Reference in New Issue
Block a user