Git Product home page Git Product logo

crystal-ball's Introduction

Orakuru's crystal-ball

Node for providing data into Orakuru network.

Configuration

Crystal-ball uses environment variables and configuration files for configuration. List of environment variables with their meaning:

  • CB_CONFIG_DIR - path to etc directory containing web3.yml and requests.yml. Default is etc/
  • CB_LOG_LEVEL - log level of the node, from trace to panic. Default is info
  • CB_PRETTY_LOG - if set to true, outputs logs in a pretty format, otherwise uses JSON. Default is true
  • MONITORING_HOST - host:port on which Prometheus monitoring will be exposed. Default is :9000

Explanation of specific configuration files is provided as comments in examples (etc/ in this repo).

Installation

Recommended way of running a node is through Docker. You'll need to create configuration files first. An example command for starting node:

$ docker run -v /absolute/path/to/etc:/orakuru/etc -d \ # Path to configuration
             -e CB_LOG_LEVEL=trace \ # Enable debug logging
             --name "crystal-ball" \ # Set name for container
             ghcr.io/orakurudata/crystal-ball:v0.2.4

Notice: before running this command, you need to create a configuration directory somewhere on your machine, copy Web3 and Requests configuration files to that directory, and modify them (change web3 endpoint, private key). After that, replace /absolute/path/to/etc with an absolute path to your newly created configuration directory. This step is REQUIRED.

You can also build your version of node from scratch. You'll need to install Go 1.16 or higher, GCC, G++, linux-headers, and git. As of now, we officially only support Linux, but node probably will build on Windows and macOS.

To build node from scratch, follow these steps:

$ git clone https://github.com/orakurudata/crystal-ball
$ cd crystal-ball
$ go get ./...
$ go install ./cmd/crystal-ball

This will build and install crystal-ball executable to $GOPATH/bin.

crystal-ball's People

Contributors

angelbarrera92 avatar rirush 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.