GithubHelp home page GithubHelp logo

mondanoced / local-celestia-devnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rollkit/local-celestia-devnet

0.0 0.0 0.0 80 KB

Docker image exposing celestia-node devnet for CI and local development

License: Apache License 2.0

Shell 87.02% Dockerfile 12.98%

local-celestia-devnet's Introduction

Local Celestia Devnet

This repo provides a Docker image that allows developers to spin up a local Celestia devnet composed of:

  • 1 x celestia-app validator node
  • 1 x celestia-node bridge node

For information about the different node types, see here.

To run the Docker image from ghcr.io

docker run -t -i \
    -p 26650:26650 -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \
    ghcr.io/rollkit/local-celestia-devnet:latest

To build and run the Docker image

First, clone the repository:

git clone https://github.com/rollkit/local-celestia-devnet.git

Change into the directory:

cd local-celestia-devnet/

To build the Docker image:

docker build . -t celestia-local-devnet

To run the Docker container:

docker run -t -i \
    -p 26650:26650 -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \
    celestia-local-devnet

Test that the HTTP gateway server is up:

curl -X GET http://127.0.0.1:26659/head

Running a Detached Container

If you would like the run the container in the background, you can use the -d flag:

docker run -d -t -i \
    -p 26650:26650 -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \
    celestia-local-devnet

Stopping the Container

To stop the container when you are attached to the container, you can use Ctrl+C to stop the container.

To stop the container when you are detached from the container, you can use the docker ps command to find the container ID:

docker ps

Then, use the docker stop command to stop the container:

docker stop <container-id>

To remove the container, use the docker rm command to remove the container:

docker rm <container-id>

Exposed Ports

Port Protocol Address Description Node Type
26650 gRPC 127.0.0.1 gRPC Data Availability Service
26657 HTTP 127.0.0.1 RPC Consensus (e.g celestia-app)
26658 HTTP 127.0.0.1 RPC Data Availability (e.g celestia-node)
26659 HTTP 127.0.0.1 REST Data Availability (e.g celestia-node)
9090 HTTP 0.0.0.0 gRPC Consensus (e.g celestia-app)

Environment Variables

Variable Description Default
CELESTIA_NAMESPACE Namespace to use for DA Service Randomly generated

You may also find these docs helpful:

local-celestia-devnet's People

Contributors

gupadhyaya avatar jcstein avatar msevey avatar tuxcanfly avatar dependabot[bot] avatar smuu avatar bidon15 avatar tzdybal avatar sysrex avatar hcastano avatar manav-aggarwal avatar natalipatel8 avatar rootulp 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.