Skip to main content

Hydra manages many heads of networks

Project description

ShipChain

License Chat

Hydra manages many heads of networks

Quick-start Guide

Just trying to use hydra? Follow our Validator Setup Guide

Developer Instructions

Install

make virtualenv
source env/bin/activate

Configure client and run node

Note: Replace network-name with your chosen network (e.g. shipchain-testnet-alpha)

  1. Join a network hydra client join-network -n network-name
  2. Configure client hydra client configure -n network-name
  3. Start node and begin syncing with network - this will take a while cd network-name && ./start_blockchain.sh

Your node is sync'd to the network when curl localhost:46657/status returns sync_info.catching_up: false

Shipchain validator node commands can be accessed from ~/hydra/network-name/shipchain

General Installation and Development Guidelines

Installation

$ pip install -r requirements.txt

$ pip install setup.py

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

Environment Setup

The following demonstrates setting up and working with a development environment:

### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run hydra cli application

$ hydra --help


### run pytest / coverage

$ make test

Releasing to PyPi

Before releasing to PyPi, you must configure your login credentials:

~/.pypirc:

[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD

Then use the included helper function via the Makefile:

$ make dist

$ make dist-upload

Deployments

Docker

Included is a basic Dockerfile for building and distributing ShipChain Network Hydra Manager, and can be built with the included make helper:

$ make docker

$ docker run -it hydra --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for shipchain-hydra, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size shipchain_hydra-1.0.3-py3-none-any.whl (42.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size shipchain-hydra-1.0.3.tar.gz (37.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page