Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat [DEMO]: deploy to mocha #6

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
version: "3.9"
services:
da:
container_name: 'celestia-da'
user: root
platform: linux/x86_64
image: "ghcr.io/rollkit/local-celestia-devnet:v0.12.1"
image: "ghcr.io/celestiaorg/celestia-node:v0.12.1"
command: >
celestia light start
--core.ip rpc-mocha.pops.one
--p2p.network mocha
--log.level debug --gateway
environment:
- NODE_TYPE=light
- P2P_NETWORK=mocha
ports:
- "26657:26657"
- "26658:26658"
- "26659:26659"
volumes:
- $HOME/.celestia-light-mocha-4/:/home/celestia/.celestia-light-mocha-4/
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:26659/header/1"]
interval: 10s
Expand Down
4 changes: 2 additions & 2 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ function writeConfigs(argv: any) {
"celestia-cfg": {
"enable": true,
"rpc": "http://da:26658",
"tendermint-rpc": "http://da:26657",
"namespace-id": "000008e5f679bf7116cb",
"tendermint-rpc": "http://rpc-mocha.pops.one:26657",
"namespace-id": "6E6974726F76726F6F6D",
"auth-token": argv.authToken,
}
},
Expand Down
4 changes: 2 additions & 2 deletions test-node.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

NITRO_NODE_VERSION=offchainlabs/nitro-node:v2.1.1-e9d8842-dev
BLOCKSCOUT_VERSION=offchainlabs/blockscout:v1.0.0-c8db5b1
NODE_PATH="/home/celestia/bridge/"
NODE_PATH="/home/celestia/.celestia-light-mocha-4/"

mydir=`dirname $0`
cd "$mydir"
Expand Down Expand Up @@ -284,7 +284,7 @@ if $force_init; then
echo == Bringing up Celestia Devnet
docker-compose up -d da
wait_up http://localhost:26659/header/1
export CELESTIA_NODE_AUTH_TOKEN="$(docker exec nitro-testnode_da_1 celestia bridge auth admin --node.store ${NODE_PATH})"
export CELESTIA_NODE_AUTH_TOKEN="$(docker exec celestia-da celestia light auth admin --node.store ${NODE_PATH})"

echo == Generating l1 keys
docker-compose run scripts write-accounts
Expand Down