mirror of
https://github.com/oceanprotocol/barge.git
synced 2024-12-02 05:57:21 +01:00
Ocean DB script
This commit is contained in:
parent
713fd4aa0c
commit
8d933ec72a
1
ocean-agent/README.md
Normal file
1
ocean-agent/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Instructions to run an Ocean-Agent node using Docker compose
|
9
ocean-db/.dockerignore
Normal file
9
ocean-db/.dockerignore
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.cache/
|
||||||
|
.coverage
|
||||||
|
.eggs/
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
.ropeproject/
|
||||||
|
.travis.yml
|
||||||
|
BigchainDB.egg-info/
|
||||||
|
dist/
|
97
ocean-db/.gitignore
vendored
Normal file
97
ocean-db/.gitignore
vendored
Normal 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
|
20
ocean-db/.pre-commit-config.yaml
Normal file
20
ocean-db/.pre-commit-config.yaml
Normal 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/)'
|
6
ocean-db/.readthedocs.yml
Normal file
6
ocean-db/.readthedocs.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
build:
|
||||||
|
image: latest
|
||||||
|
|
||||||
|
python:
|
||||||
|
version: 3.6
|
||||||
|
pip_install: true
|
55
ocean-db/.travis.yml
Normal file
55
ocean-db/.travis.yml
Normal 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
18
ocean-db/README.md
Normal 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
9
ocean-db/bdb-install.sh
Executable 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
3
parity/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Instructions to run a Parity dev node using Docker Compose
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user