Skip to content

HTTP API for IPFS content encryption and keys management

Notifications You must be signed in to change notification settings

merklebot/custody

Repository files navigation

Custody

Develop

You need pyenv and poetry available in development environment.

  1. Setup Python version specified in .python-version
pyenv install
  1. Prepare virtual environment with required dependencies and activate it
poetry install
poetry shell
  1. Setup pre-commit git hooks to automate code quality check
poetry run pre-commit install
  1. Create .env and specify arguments
cp .env.example
  1. Run migrations
alembic upgrade head
  1. Run app

On a localhost

python -m custody

Or in a container

docker compose up

Deploy

With Docker CLI

  1. Load environment variables
export $(cat .env | xargs)
  1. Deploy stack to Docker Swarm cluster
docker stack deploy -c docker-compose.yml -c docker-compose.prod.yml <stack_name>

With Ansible

ANSIBLE_CONFIG=/path/to/ansible.cfg ansible-playbook -i /path/to/hosts.yml deploy.yml

About

HTTP API for IPFS content encryption and keys management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages