Skip to content

Commit

Permalink
docker: replace celestia with celestia-da
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcanfly committed Nov 16, 2023
1 parent dd90c11 commit 5367d8e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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" ]
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand All @@ -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
```

Expand Down Expand Up @@ -90,6 +90,7 @@ docker rm <container-id>

| 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`) |
Expand Down
11 changes: 7 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
--keyring.accname validator \
--grpc.token "$CELESTIA_NODE_AUTH_TOKEN" \
--grpc.namespace "000008e5f679bf7116cb" \
--grpc.listen "127.0.0.1:26650"

0 comments on commit 5367d8e

Please sign in to comment.