Skip to content

Instantly share code, notes, and snippets.

@andy108369
Last active March 17, 2023 14:25
Show Gist options
  • Save andy108369/b395617ba6c9d165423d41697b2e2a6a to your computer and use it in GitHub Desktop.
Save andy108369/b395617ba6c9d165423d41697b2e2a6a to your computer and use it in GitHub Desktop.
Akash deployment manifest (SDL) for Celestia
# HW reqs for light node https://docs.celestia.org/nodes/light-node/#hardware-requirements
# Testnets & RPC endpoints https://docs.celestia.org/nodes/participate
# Images:
# blockspacerace: 0.7.1
# mocha: 0.6.4 (no docker image tag -- https://github.com/celestiaorg/celestia-node/issues/1702) -- `ghcr.io/celestiaorg/celestia-node:sha-747c9e5`
# arabica: 0.7.1
---
version: '2.0'
services:
celestia:
image: 'ghcr.io/celestiaorg/celestia-node:v0.7.1'
expose:
- port: 80
as: 80
to:
- global: true
command:
- sh
- -c
args:
- '/celestia light --p2p.network blockspacerace init;
/celestia light start --core.ip https://rpc-blockspacerace.pops.one --gateway --gateway.addr 127.0.0.1 --gateway.port 26659 --p2p.network blockspacerace'
profiles:
compute:
celestia:
resources:
cpu:
units: 1
memory:
size: 2Gi
storage:
size: 5Gi
placement:
dcloud:
pricing:
celestia:
denom: uakt
amount: 1000
deployment:
celestia:
dcloud:
profile: celestia
count: 1
@andy108369
Copy link
Author

andy108369 commented Mar 17, 2023

You could also use the NODE_TYPE=light & P2P_NETWORK=blockspacerace, but then the commands would be just the args (without command):

    env:
      - NODE_TYPE=light
      - P2P_NETWORK=blockspacerace
    args:
      - celestia
      - light
      - start
      - --core.ip=https://rpc-blockspacerace.pops.one
      - --gateway
      - --gateway.addr=127.0.0.1
      - --gateway.port=26659
      - --p2p.network=blockspacerace

This is the only place these two env. variables are getting read https://github.com/celestiaorg/celestia-node/blob/v0.7.1/docker/entrypoint.sh#L6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment