Ocean DB script

This commit is contained in:
aitor@oceanprotocol.com 2018-04-26 17:38:23 +01:00
parent 713fd4aa0c
commit 8d933ec72a
9 changed files with 218 additions and 0 deletions

1
ocean-agent/README.md Normal file
View File

@ -0,0 +1 @@
# Instructions to run an Ocean-Agent node using Docker compose

9
ocean-db/.dockerignore Normal file
View File

@ -0,0 +1,9 @@
.cache/
.coverage
.eggs/
.git/
.gitignore
.ropeproject/
.travis.yml
BigchainDB.egg-info/
dist/

97
ocean-db/.gitignore vendored Normal file
View File

@ -0,0 +1,97 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Swap -- copypasta from https://github.com/github/gitignore/blob/master/Global/Vim.gitignore
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# Session
Session.vim
# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
.pytest_cache/
nosetests.xml
coverage.xml
*.cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Sphinx documentation
docs/build/
# PyBuilder
target/
# Ipython Notebook
.ipynb_checkpoints
# pyenv
.python-version
# Just in time documentation
docs/server/source/http-samples
# Terraform state files
# See https://stackoverflow.com/a/41482391
terraform.tfstate
terraform.tfstate.backup
# tendermint data
tmdata/data
network/*/data
# Docs that are fetched at build time
docs/contributing/source/cross-project-policies/*.md

View File

@ -0,0 +1,20 @@
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v1.1.1
hooks:
- id: trailing-whitespace
args: ['--no-markdown-linebreak-ext']
- id: check-merge-conflict
- id: debug-statements
- id: check-added-large-files
- id: flake8
- repo: git://github.com/chewse/pre-commit-mirrors-pydocstyle
sha: v2.1.1
hooks:
- id: pydocstyle
# list of error codes to check, see: http://www.pydocstyle.org/en/latest/error_codes.html
args: ['--select=D204,D201,D209,D210,D212,D300,D403']
# negate the exclude to only apply the hooks to 'bigchaindb' and 'tests' folder
exclude: '^(?!bigchaindb/)(?!tests/)'

View File

@ -0,0 +1,6 @@
build:
image: latest
python:
version: 3.6
pip_install: true

55
ocean-db/.travis.yml Normal file
View File

@ -0,0 +1,55 @@
sudo: required
dist: trusty
services:
- docker
language: python
cache: pip
python:
- 3.5
- 3.6
env:
global:
- DOCKER_COMPOSE_VERSION=1.19.0
matrix:
- TOXENV=flake8
- TOXENV=docsroot
- TOXENV=docsserver
matrix:
fast_finish: true
exclude:
- python: 3.5
env: TOXENV=flake8
- python: 3.5
env: TOXENV=docsroot
- python: 3.5
env: TOXENV=docsserver
include:
- python: 3.5
env:
- BIGCHAINDB_DATABASE_BACKEND=localmongodb
- BIGCHAINDB_DATABASE_SSL=
- python: 3.6
env:
- BIGCHAINDB_DATABASE_BACKEND=localmongodb
- BIGCHAINDB_DATABASE_SSL=
- python: 3.6
env:
- BIGCHAINDB_DATABASE_BACKEND=localmongodb
- BIGCHAINDB_DATABASE_SSL=
- BIGCHAINDB_CI_ABCI=enable
before_install: sudo .ci/travis-before-install.sh
install: .ci/travis-install.sh
before_script: .ci/travis-before-script.sh
script: .ci/travis_script.sh
after_success: .ci/travis-after-success.sh

18
ocean-db/README.md Normal file
View File

@ -0,0 +1,18 @@
# Instructions for running BDB using Docker Compose
* Install last versions of [Docker](https://docs.docker.com/install/) and [Docker Compose](https://github.com/docker/compose/releases)
* Install BDB and all the components
```bash
sh bdb-install.sh
```
* Start BDB compose
```bash
docker-compose up -d bdb
```

9
ocean-db/bdb-install.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh -x
curl -L https://github.com/bigchaindb/bigchaindb/archive/master.zip -o bigchaindb.zip
#unzip bigchaindb.zip -d . && mv bigchaindb-master/* . && rm -rf bigchaindb-master bigchaindb.zip
unzip bigchaindb.zip -d . && cd bigchaindb-master
docker-compose build bigchaindb
cd ..
rm -rf bigchaindb-master bigchaindb.zip

3
parity/README.md Normal file
View File

@ -0,0 +1,3 @@
# Instructions to run a Parity dev node using Docker Compose