Coder Social home page Coder Social logo

blockbook-docker's Introduction

Multicoin Blockbook Explorer

USAGE

bash -i <(curl -s https://raw.githubusercontent.com/XK4MiLX/blockbook-docker/master/blockbook-docker_manager.sh)
-----------------------------------------------------------------------------
| Blockbook Docker Manager v2.0
-----------------------------------------------------------------------------
| Usage:
| status <coin_name>               - show blockbook docker status
| list <url>                       - show coin list
| update                           - update blockbook docker image
| exec <coin_name>                 - login to docker image
| create <coin_name> <-e variable> - create docker blockbook
| <coin_name> <-e variable>        - generate docker run commandline
| clean <coin_name>                - removing blockbook
| softdeploy <coin_name>           - updating image with date
-----------------------------------------------------------------------------
| FluxOS Blockbook Checker v1.0
-----------------------------------------------------------------------------
| Usage:
| fluxos list                       - list running blockbooks on fluxos
| fluxos <coin_name>                - show information about coin blockbook
-----------------------------------------------------------------------------

Deploy container

bash -i <(curl -s https://raw.githubusercontent.com/XK4MiLX/blockbook-docker/master/blockbook-docker_manager.sh) create flux

Maintenance (utils.sh)

  -------------------------------------------------------------------------------------
  | Blockbook Utils v1.0
  -------------------------------------------------------------------------------------
  | Usage:
  | blockbook_backup                              - create blockbook database backup
  | blockbook_restore (-archive)/(-remote <url>)  - restore blockbook database
  | blockbook_fix                                 - fix corrupted blockbook database
  | blockbook_clean                               - wipe blockbook database
  | backend_update <url>                          - update daemon binary
  | backend_backup                                - create backend backup archive
  | backend_restore (-remote <url>)               - restore backend from backup archive
  | backend_clean                                 - wipe backend directory
  | backup_share                                  - share backup archive directory via http
  | backup_archive                                - create backup archive directory
  | backup_clean                                  - remove backup archive directory content 
  | log_clean                                     - remove logs
  | logs <number>                                 - show all logs
  ------------------------------------------------------------------------------------
  () - optional

Environment Variables

To customize some properties of the container, the following environment variables can be passed via the -e parameter (one for each variable). Value of this parameter has the format <VARIABLE_NAME>=<VALUE>.

Variable Description Required Default
COIN Name of coin for blockbook YES unset
DAEMON Enable/Disable daemon luncher
DISABLED=0, ENABLED=1
NO 1
BLOCKBOOKGIT_URL Custom blockbook github repository URL NO https://github.com/trezor/blockbook.git
TAG Name of git branch NO master
BINARY_NAME Name of daemon binary NO AUTO
FROM BLOCKBOOK CONFIG
RPC_PORT Listen for RPC connections on this TCP port YES unset
RPC_USER Usename for RPC connections NO user
RPC_PASS Password for RPC connections NO pass
RPC_HOST Node hostname for blockbook NO localhost
RPC_URL_PROTOCOL Protocol for RPC calls
Info: ETH, ETC using ws
NO http
CONFIG_DIR Set daemon config dirname when diffrent then .${COIN} NO unset
CONFIG Use Config file for daemon
DISABLED=0, ENABLED=1
Info: DISABLED using cli
NO 1
EXTRACONFIG Additional config option for daemon
Example: "addnode=explorer.flux.zelcore.io\naddnode=explorer.runonflux.io"
NO unset
CLIFLAGS Config flags for daemon YES
when using CLI mode
unset
DAEMON_URL Download URL for daemon .tar.gz archive NO AUTO
FROM BLOCKBOOK CONFIG
DAEMON_CONFIG Generate daemon config using blockbook template NO AUTO
FROM BLOCKBOOK
FETCH_FILE Name of fetch parms script
Example: "fetch-params.sh"
NO unset
LOG_SIZE_LIMIT Size limit for log cleaner in MB NO 40
BLOCKBOOK_PORT Port for blockbook. To get correct port check:
https://github.com/trezor/blockbook/blob/master/docs/ports.md
YES unset
BOOTSTRAP Enable daemon bootstrapping
DISABLED=0, ENABLED=1
NO 0
B_FILE Bootstrap archive file name NO daemon_bootstrap.tar.gz
B_TIMEOUT Bootstrap speed test timeout in sec NO 6
B_SERVERS_LIST Servers list for bootstraping
Example: '("http://cdn-14.runonflux.io/apps/fluxshare/getfile/" "http://cdn-15.runonflux.io/apps/fluxshare/getfile/")'
NO BUILD-IN SERVERS LIST

v2.0

blockbook-docker's People

Contributors

xk4milx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.