Skip to main content

Running Bitcoin and peripherals via Terminal User Interface

Project description

Arise

Bitcoin-only Docker Top Languages Size Last commit

Arise Banner

Getting started

You can use arise simply by installing via pip on your Terminal.

pip install arise
Sample output when running install command

Sample Pip Install

And build required images with build command. The following shows you how to build a Testnet Bitcoin-Core node as well as electrs, mempool and mutiny-web

arise build --testnet --electrs --mempool --mutiny-web
Sample output when running build command

Sample Arise Build

The initial build may take some time as it is downloading source codes from different repositories and interfacing with Docker Daemon to build according to flagged requirements. Once the build process completes, you can begin deploying local network with peripherals as such:

arise deploy --testnet --with-electrs --with-mempool --with-mutiny-web
Sample output when running deploy command

Sample Arise Deploy

You will have docker containers running in the backend, ready to be interfaced by your local environment applications you are developing.

Dashboard

Arise not only facilitates the deployment of intermingling Bitcoin services but allows you to view Node's Blockchain Information, Mempool Information, Peripheral Details and etc.

In order to view relevant metrics, launch the dashboard using the following command.

arise dashboard
Sample output when running dashboard command

Sample Arise Dashboard

Contributions

Prerequisites

Set up local environment

The following guide walks through setting up your local working environment using pyenv as Python version manager and uv as Python package manager. If you do not have pyenv installed, run the following command.

Install using Homebrew (Darwin)
brew install pyenv --head
Install using standalone installer (Darwin and Linux)
curl https://pyenv.run | bash

If you do not have uv installed, run the following command.

Install using Homebrew (Darwin)
brew install uv
Install using standalone installer (Darwin and Linux)
curl -LsSf https://astral.sh/uv/install.sh | sh

Once you have pyenv Python version manager installed, you can install any version of Python above version 3.8 for this project. The following commands help you set up and activate a Python virtual environment where uv can download project dependencies from the PyPI open-sourced registry defined under pyproject.toml file.

Set up environment and synchronize project dependencies
pyenv shell 3.11.9
uv venv  --python-preference system
source .venv/bin/activate
uv sync --dev

Now you have the entire project set-up and ready to be tinkered with. Try out the standard arise command which brings up a help menu.

Launch Arise Help
$ arise
>  Usage: arise [OPTIONS] COMMAND [ARGS]...
> 
>   arise
> 
> Options:
>   --help  Show this message and exit.
> 
> Commands:
>   auth       Persist authentications in desired run-control file.
>   build      Build peripheral images for the desired cluster.
>   clean      Remove all active "arise-*" containers, drop network.
>   dashboard  Dashboard for checking current state of images deployed.
>   deploy     Deploy cluster.
>   pull       Pull core and peripheral images from GitHub container registry

Attributions

  1. Dutch Golden Age Prints and Paintings - Rijksmuseum, Public Domain Marked.
  2. ปฐวี - Patavi font by uvSOV - Worawut Thanawatanawanich
  3. Florent Galon for flame animation used as Tusk's HellFire.
  4. Avinash Vytla for breaking down Florent's process on YouTube

Known issues

You may run into this setback when first running this project. This is a docker-py issue widely known as of October 2022.

docker.errors.DockerException:
  Error while fetching server API version: (
    'Connection aborted.', FileNotFoundError(
      2, 'No such file or directory'
    )
  )

See the following issue for Mac OSX troubleshooting. docker from_env and pull is broken on mac Recommended fix is to run the following command:

sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock

License

This project is licensed under the terms of the MIT license.

Project details


Download files

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

Source Distribution

arise-0.2.2.tar.gz (18.2 MB view details)

Uploaded Source

Built Distribution

arise-0.2.2-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file arise-0.2.2.tar.gz.

File metadata

  • Download URL: arise-0.2.2.tar.gz
  • Upload date:
  • Size: 18.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.16

File hashes

Hashes for arise-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c31d798f545d1c4785e73cbc29a6bd2e9cb07fadfb99be34d78f6037d1584676
MD5 34f9c14e327efadd0da74cd9f43aaefb
BLAKE2b-256 e32bbb7c6691f384857d6bd491fcc6504379fc28fdfb554166b480e5c2d0eae1

See more details on using hashes here.

File details

Details for the file arise-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: arise-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.16

File hashes

Hashes for arise-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f11b2a70830bd095793335de156605c8d7f7de9f8dad3ab8aa7a8370f5faa2b
MD5 24cd4d9c29f69c71da547d0fa557f527
BLAKE2b-256 01d913f38aa0e713dee56a71f553307548adb1796c5e7385436a1051c0c537ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page