Git Product home page Git Product logo

orakuru-node-docker-compose's Introduction

Orakuru Node Docker Compose

This repository contains a Dockerfile for building a dockerized version of the BSC node and a compose file to run it along side the Orakuru Crystal Ball node.

These files are meant to be a template, customized to your specific use case.

Requirements

Docker: Instructions

Docker Compose: Instructions

Crystal Ball configuration files: Official Gitbook

Setup

You will need to first create two directories. One will contain your crystal-ball configuration files, the other will contain your BSC node data.

If you have not synced the BSC node yet, you can use an empty directory here and the script will write the genesis block and start the sync for you.

Please follow the official documentation for setting up your crystal-ball configuration files.

Instructions

Assuming your crystal-ball config directory is ~/.orakuru and your BSC node data directory is ~/node.

Step 1: Clone this repository

git clone https://github.com/yes-but-also-no/orakuru-node-docker-compose

Step 2: Customize docker-compose.yml

Using your editor of choice, modify docker-compose.yml to update the volume mount points:

services:
    bsc:
        ...
        volumes:
            - ~/node:/bsc/node
    
    orakuru:
        ...
        volumes:
            - ~/.orakuru:/orakuru/etc
        ...

Some other things you can do in this file:

  • Remove port mapping from the orakuru service if you are not using Prometheus monitoring
  • Add a build argument to the bsc service to build for mainnet: BSC_NETWORK: mainnet

Step 3: Update web3.yml with the bsc node's websocket address

The only change you will need to make that differs fromt the official documentation will be the value of url in web3.yml.

To point the crystal-ball to your bsc node, you will use url: ws://bsc:8576. If you are planning to customize docker-compose.yml further, please see this page for more information about how networking works within a docker-compose file.

Step 4: Build the bsc node image

If you make any changes to the bsc-node/Dockerfile you will need to re-run this step.

docker-compose build bsc

Step 5: Start the docker-compose file

To start both crystal-ball and the bsc node in the background:

docker-compose up -d

To stop both crystal-ball and the bsc node:

docker-compose down

To start only one of the services:

docker-compose up [-d] <bsc/orakuru>

Step 6: Confirm your bsc node is running and synchronizing

docker exec bsc /bsc/geth attach ws://bsc:8576 --exec eth.syncing

This command will print either the current block being synced or false if the node is still connecting to peers or is up to date.

Updating crystal-ball

To update the crystal-ball service, open docker-compose.yml in your favorite editor and modify the version tag for the orakuru service.

Then run:

docker-compose up [-d] orakuru

orakuru-node-docker-compose's People

Contributors

yes-but-also-no avatar

Watchers

 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.