Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 37b0ecd

Browse files
committed
docs: deploy testnet with celestia-node; skip auth token if set
1 parent 2279b64 commit 37b0ecd

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

bedrock-devnet/devnet/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,15 @@ def devnet_deploy(paths):
271271

272272
log.info('Bringing up DA')
273273
run_command(['docker', 'compose', 'up', '-d', 'da'], cwd=paths.ops_bedrock_dir, env=docker_env)
274-
wait_up(26658)
275-
time.sleep(15)
276-
celestia_node_auth_token = run_command([
277-
'docker', 'compose', 'exec', '--no-TTY', 'da', 'celestia', 'bridge', 'auth', 'admin', '--node.store', '/home/celestia/bridge'
278-
], cwd=paths.ops_bedrock_dir, env=docker_env, capture_output=True).stdout.decode().strip()
279-
docker_env['CELESTIA_NODE_AUTH_TOKEN'] = celestia_node_auth_token
280-
print('CELESTIA_NODE_AUTH_TOKEN: ', celestia_node_auth_token)
274+
275+
if not os.getenv("CELESTIA_NODE_AUTH_TOKEN"):
276+
wait_up(26658)
277+
time.sleep(15)
278+
celestia_node_auth_token = run_command([
279+
'docker', 'compose', 'exec', '--no-TTY', 'da', 'celestia', 'bridge', 'auth', 'admin', '--node.store', '/home/celestia/bridge'
280+
], cwd=paths.ops_bedrock_dir, env=docker_env, capture_output=True).stdout.decode().strip()
281+
docker_env['CELESTIA_NODE_AUTH_TOKEN'] = celestia_node_auth_token
282+
print('CELESTIA_NODE_AUTH_TOKEN: ', celestia_node_auth_token)
281283

282284

283285
# Bring up the rest of the services.

ops-bedrock/docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ services:
2424
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:devnet
2525
entrypoint: ["echo", "build complete"]
2626
da:
27-
image: ghcr.io/rollkit/local-celestia-devnet:v0.13.1
27+
image: ghcr.io/celestiaorg/celestia-node:v0.13.2
28+
command: celestia light start --p2p.network mocha-4 --core.ip consensus-full-mocha-4.celestia-mocha.com --keyring.accname w1 --gateway
2829
ports:
2930
- "26658:26658"
31+
- "26659:26659"
32+
volumes:
33+
- $HOME/.celestia-light-mocha-4/:/home/celestia/.celestia-light-mocha-4/
34+
environment:
35+
NODE_TYPE: "light"
36+
P2P_NETWORK: "mocha"
37+
user: root
3038
healthcheck:
3139
test: ["CMD", "curl", "-f", "http://localhost:26659/header/1"]
3240
interval: 10s

0 commit comments

Comments
 (0)