Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikeshultz/blocks
https://github.com/mikeshultz/blocks
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mikeshultz/blocks
- Owner: mikeshultz
- License: gpl-3.0
- Created: 2017-12-21T05:03:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T17:32:25.000Z (over 3 years ago)
- Last Synced: 2024-10-12T04:48:15.379Z (about 1 month ago)
- Language: Python
- Size: 103 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blocks
For the insane person who wants the blockchain in a relational database(PostgreSQL).
## Install
pip install setup.py
## Configuration
Either entries in an INI file like so, or environmental variables. The latter takes precidence in
all cases.### Environmental Variables
- LOG_LEVEL
- JSONRPC_NODE
- PGUSER
- PGPASSWORD
- PGHOST
- PGPORT
- PGDATABASE## Deploy
### ECS
1) Build the docker image
docker build -t blocks:v0.0.1b1 --build-arg DB_USER="blocks" --build-arg DB_PASS="pASS" --build-arg DB_HOST="data.box.gointo.tools" --build-arg JSONRPC_NODE="https://node0.eth.gointo.software/" .
2) Login to AWS ECR
$(aws --profile gointo ecr get-login --no-include-email --region us-west-2)
3) Tag the image
docker tag blocks 525686199231.dkr.ecr.us-west-2.amazonaws.com/blocks:v0.0.1b1
4) Push the image
docker push 525686199231.dkr.ecr.us-west-2.amazonaws.com/blocks:v0.0.1b1
5) Update the Terraform task definition for this app and apply.