diff --git a/ocean-agent/README.md b/ocean-agent/README.md new file mode 100644 index 0000000..37e8007 --- /dev/null +++ b/ocean-agent/README.md @@ -0,0 +1 @@ +# Instructions to run an Ocean-Agent node using Docker compose diff --git a/ocean-db/.dockerignore b/ocean-db/.dockerignore new file mode 100644 index 0000000..dfd6a8c --- /dev/null +++ b/ocean-db/.dockerignore @@ -0,0 +1,9 @@ +.cache/ +.coverage +.eggs/ +.git/ +.gitignore +.ropeproject/ +.travis.yml +BigchainDB.egg-info/ +dist/ diff --git a/ocean-db/.gitignore b/ocean-db/.gitignore new file mode 100644 index 0000000..867c197 --- /dev/null +++ b/ocean-db/.gitignore @@ -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 diff --git a/ocean-db/.pre-commit-config.yaml b/ocean-db/.pre-commit-config.yaml new file mode 100644 index 0000000..e53e35b --- /dev/null +++ b/ocean-db/.pre-commit-config.yaml @@ -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/)' diff --git a/ocean-db/.readthedocs.yml b/ocean-db/.readthedocs.yml new file mode 100644 index 0000000..c8b8b04 --- /dev/null +++ b/ocean-db/.readthedocs.yml @@ -0,0 +1,6 @@ +build: + image: latest + +python: + version: 3.6 + pip_install: true diff --git a/ocean-db/.travis.yml b/ocean-db/.travis.yml new file mode 100644 index 0000000..fefdb4c --- /dev/null +++ b/ocean-db/.travis.yml @@ -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 diff --git a/ocean-db/README.md b/ocean-db/README.md new file mode 100644 index 0000000..f304a25 --- /dev/null +++ b/ocean-db/README.md @@ -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 +``` + + + + + + diff --git a/ocean-db/bdb-install.sh b/ocean-db/bdb-install.sh new file mode 100755 index 0000000..010f43d --- /dev/null +++ b/ocean-db/bdb-install.sh @@ -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 + diff --git a/parity/README.md b/parity/README.md new file mode 100644 index 0000000..528d710 --- /dev/null +++ b/parity/README.md @@ -0,0 +1,3 @@ +# Instructions to run a Parity dev node using Docker Compose + +