diff --git a/Dockerfile b/Dockerfile index e1b2c7c..b0c6823 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM ghcr.io/celestiaorg/celestia-app:v1.3.0 AS celestia-app -FROM ghcr.io/celestiaorg/celestia-node:v0.12.0 +FROM opcelestia/celestia-da:v0.12.0 USER root @@ -17,6 +17,6 @@ COPY --from=celestia-app /bin/celestia-appd /bin/ COPY entrypoint.sh /opt/entrypoint.sh -EXPOSE 26657 26658 26659 9090 +EXPOSE 26650 26657 26658 26659 9090 ENTRYPOINT [ "/bin/bash", "/opt/entrypoint.sh" ] diff --git a/README.md b/README.md index 241d79f..350ea1f 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ For information about the different node types, see ```bash docker run -t -i \ - -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ + -p 26650:26650 -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ ghcr.io/rollkit/local-celestia-devnet:latest ``` @@ -41,7 +41,7 @@ To run the Docker container: ```bash docker run -t -i \ - -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ + -p 26650:26650 -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ celestia-local-devnet ``` @@ -58,7 +58,7 @@ If you would like the run the container in the background, you can use the ```bash docker run -d -t -i \ - -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ + -p 26650:26650 -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ celestia-local-devnet ``` @@ -90,6 +90,7 @@ docker rm | 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`) | diff --git a/entrypoint.sh b/entrypoint.sh index 45b141d..84978e5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -73,10 +73,13 @@ done export CELESTIA_CUSTOM=test:$GENESIS echo $CELESTIA_CUSTOM -celestia bridge init --node.store /home/celestia/bridge -export CELESTIA_NODE_AUTH_TOKEN=$(celestia bridge auth admin --node.store ${NODE_PATH}) +celestia-da bridge init --node.store /home/celestia/bridge +export CELESTIA_NODE_AUTH_TOKEN=$(celestia-da bridge auth admin --node.store ${NODE_PATH}) echo "WARNING: Keep this auth token secret **DO NOT** log this auth token outside of development. CELESTIA_NODE_AUTH_TOKEN=$CELESTIA_NODE_AUTH_TOKEN" -celestia bridge start \ +celestia-da bridge start \ --node.store $NODE_PATH --gateway \ --core.ip 127.0.0.1 \ - --keyring.accname validator \ No newline at end of file + --keyring.accname validator \ + --grpc.token "$CELESTIA_NODE_AUTH_TOKEN" \ + --grpc.namespace "000008e5f679bf7116cb" \ + --grpc.listen "127.0.0.1:26650"