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

docker: replace celestia with celestia-da #75

Merged
merged 6 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
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.4.0 AS celestia-app

FROM ghcr.io/celestiaorg/celestia-node:v0.12.0
FROM ghcr.io/rollkit/celestia-da:v0.12.1-rc0

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
13 changes: 5 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,10 @@ while [ "${#GENESIS}" -le 4 -a $CNT -ne $MAX ]; do
sleep 1
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})
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_CUSTOM=test:$GENESIS celestia-da bridge init --node.store /home/celestia/bridge
CELESTIA_CUSTOM=test:$GENESIS celestia-da bridge start \
--node.store $NODE_PATH --gateway \
--core.ip 127.0.0.1 \
--keyring.accname validator
--keyring.accname validator \
--da.grpc.namespace "000008e5f679bf7116cb" \
--da.grpc.listen "0.0.0.0:26650"