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

docs: improve docker README #3209

Closed
wants to merge 4 commits into from
Closed

docs: improve docker README #3209

wants to merge 4 commits into from

Conversation

ogunleye0720
Copy link

@ogunleye0720 ogunleye0720 commented Mar 23, 2024

Overview

The Celestia app docker Readme.md file has been modified to enhance easy deployment in Docker and Kubernetes.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

Copy link
Contributor

coderabbitai bot commented Mar 23, 2024

Warning

Rate Limit Exceeded

@ogunleye0720 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 3 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between b6fda4d and e14aa8f.

Walkthrough

The docker/README.md file has been extensively revamped to enhance user experience. Changes include restructuring, content updates for clarity, addition of a Docker setup guide, and improved instructions for using Celestia-App via Docker. The document now offers a more detailed and user-friendly guide for setting up and utilizing the Celestia txsim Docker image.

Changes

File Path Changes
docker/README.md - Restructured sections
- Updated content for clarity
- Added Docker setup guide
- Refined instructions for running Celestia-App using Docker

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

Note: Auto-reply has been disabled for this repository by the repository owner. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@celestia-bot celestia-bot requested a review from a team March 23, 2024 13:30
docker/README.md Outdated
Comment on lines 18 to 25
## 🐳 Docker setup

This documentation provides a step by step guide on how to start up a celestia
app using a docker image. Docker provides a seamless setup for celestia-app
in an isolated environment on your machine. With Docker,
you do not have to worry about the manual configuration of the required
dependencies, which can be a pain.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The introduction to the Docker setup section is clear and concise, effectively setting the stage for the detailed instructions that follow. However, consider using "step-by-step" (with hyphens) for better readability.

- step by step
+ step-by-step

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
## 🐳 Docker setup
This documentation provides a step by step guide on how to start up a celestia
app using a docker image. Docker provides a seamless setup for celestia-app
in an isolated environment on your machine. With Docker,
you do not have to worry about the manual configuration of the required
dependencies, which can be a pain.
## 🐳 Docker setup
This documentation provides a step-by-step guide on how to start up a celestia
app using a docker image. Docker provides a seamless setup for celestia-app
in an isolated environment on your machine. With Docker,
you do not have to worry about the manual configuration of the required
dependencies, which can be a pain.

docker/README.md Outdated
Comment on lines 5 to 11
1. [Docker Setup](#docker-setup)
2. [Overview of celestia-app txsim](#overview-of-celestial-app-txsim)
3. [Prerequisites](#prerequisites)
4. [Quick-Start](#quick-start)
5. [Docker Compose](#docker-compose)
6. [Kubernetes Deployments](#kubernetes-deployments)
7. [Flag Breakdown](#flag-breakdown)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Table of Contents is well-organized and provides a clear roadmap for the document. However, there's a minor typo in the link to the "Overview of celestia-app txsim" section. The correct anchor should match the section title exactly.

-  2. [Overview of celestia-app txsim](#overview-of-celestial-app-txsim)
+  2. [Overview of celestia-app txsim](#overview-of-celestial-app-txsim)

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
1. [Docker Setup](#docker-setup)
2. [Overview of celestia-app txsim](#overview-of-celestial-app-txsim)
3. [Prerequisites](#prerequisites)
4. [Quick-Start](#quick-start)
5. [Docker Compose](#docker-compose)
6. [Kubernetes Deployments](#kubernetes-deployments)
7. [Flag Breakdown](#flag-breakdown)
1. [Docker Setup](#docker-setup)
2. [Overview of celestia-app txsim](#overview-of-celestial-app-txsim)
3. [Prerequisites](#prerequisites)
4. [Quick-Start](#quick-start)
5. [Docker Compose](#docker-compose)
6. [Kubernetes Deployments](#kubernetes-deployments)
7. [Flag Breakdown](#flag-breakdown)

docker/README.md Outdated
Comment on lines 15 to 20
This documentation provides a step by step guide on how to start up a celestia
app using a docker image. Docker provides a seamless setup for celestia-app
in an isolated environment on your machine. With Docker,
you do not have to worry about the manual configuration of the required
dependencies, which can be a pain.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The introduction to the Docker setup section is clear and concise. However, as previously noted in the comments from outdated commits, consider using "step-by-step" (with hyphens) for better readability.

- step by step
+ step-by-step

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
This documentation provides a step by step guide on how to start up a celestia
app using a docker image. Docker provides a seamless setup for celestia-app
in an isolated environment on your machine. With Docker,
you do not have to worry about the manual configuration of the required
dependencies, which can be a pain.
This documentation provides a step-by-step guide on how to start up a celestia
app using a docker image. Docker provides a seamless setup for celestia-app
in an isolated environment on your machine. With Docker,
you do not have to worry about the manual configuration of the required
dependencies, which can be a pain.

Comment on lines +30 to +32
- [Docker Desktop for Mac or Windows](https://docs.docker.com/get-docker) or
[Docker Engine for Linux](https://docs.docker.com/engine/install/)
and a basic understanding of Docker.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prerequisites section clearly outlines the necessary tools and knowledge. However, there's an unpaired symbol in the markdown link for Docker Desktop. Ensure all markdown links are correctly formatted.

- - [Docker Desktop for Mac or Windows](https://docs.docker.com/get-docker) or
+ - [Docker Desktop for Mac or Windows](https://docs.docker.com/get-docker) or

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
- [Docker Desktop for Mac or Windows](https://docs.docker.com/get-docker) or
[Docker Engine for Linux](https://docs.docker.com/engine/install/)
and a basic understanding of Docker.
- [Docker Desktop for Mac or Windows](https://docs.docker.com/get-docker) or
[Docker Engine for Linux](https://docs.docker.com/engine/install/)
and a basic understanding of Docker.

Comment on lines +52 to +53
3. Using a suitable text editor of your choice, open the
.celestia-app file and paste the keyring of the prefunded account.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When instructing users to paste the keyring into the .celestia-app file, avoid putting a space before the full stop to maintain consistency and professionalism in documentation.

- .celestia-app file and paste the keyring of the prefunded account.
+ .celestia-app file and paste the keyring of the prefunded account.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
3. Using a suitable text editor of your choice, open the
.celestia-app file and paste the keyring of the prefunded account.
3. Using a suitable text editor of your choice, open the
.celestia-app file and paste the keyring of the prefunded account.


Finally, you can run the `txsim` Docker image in a Kubernetes cluster. Here's an example `deployment.yaml` file:
Congratulations! You have successfuly set up celestia-app in Docker 😎.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The congratulatory message for successfully setting up the Celestia app in Docker contains a spelling mistake. Correct "successfuly" to "successfully" to maintain professionalism in the documentation.

- Congratulations! You have successfuly set up celestia-app in Docker 😎.
+ Congratulations! You have successfully set up celestia-app in Docker 😎.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
Congratulations! You have successfuly set up celestia-app in Docker 😎.
Congratulations! You have successfully set up celestia-app in Docker 😎.

@rootulp rootulp changed the title Readme.md modified by ogunleye0720 docs: improve docker README Mar 25, 2024
@ogunleye0720
Copy link
Author

Hello @rootulp Do let me know if there are any changes to be made.

Comment on lines +65 to +66
-r http://consensus-validator-robusta-rc6.celestia-robusta.com:26657, \
http://consensus-full-robusta-rc6.celestia-robusta.com:26657 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get rid of these two lines, as the tx sim no longer requires an rpc endpoint and the -r flag has been removed

Comment on lines +52 to +53
3. Using a suitable text editor of your choice, open the
.celestia-app file and paste the keyring of the prefunded account.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be helpful here to tell people how they can setup the keyring using the celestia-appd keys subcommand. For example celestia-appd keys add txsim would create the key and print the mnemonic. That way you can either paste the mnemonic as a flag or copy the keyring directory across

Comment on lines +157 to +172
| FLAG | DESCRIPTION | DEFAULT | OPTION |
| ---- | ---- | ---- | :----: |
|`-k`|Whether a new key should be created|0|1 for yes, 0 for no|
|`-p`|Path to keyring for prefunded account|-|-|
|`-g`|gRPC endpoint|consensus-validator-robusta-rc6.celestia-robusta.com:9090||
|`-t`|Poll time for the `txsim` binary|10s|1s,2s,3s,4s,...|
|`-b`|Number of blob sequences to run|10|any integer value(1,2,3,...)|
|`-a`|Range of blobs to send per PFB in a sequence|-|-|
|`-s`|Range of blob sizes to send|-|-|
|`-m`|Mnemonic for the keyring |-|-|
|`-d`|Seed for the random number generator|100|any integer value (1,2,3,...)|
|`-e`|Number of send sequences to run|10|any integer value (1,2,3,...)|
|`-i`|Amount to send from one account to another|-|any integer value (1,2,3,...)|
|`-v`|Number of send iterations to run per sequence|-|any integer value (1,2,3,...)|
|`-u`|Number of stake sequences to run|-|any integer value (1,2,3,...)|
|`-w`|Amount of initial stake per sequence|-|any integer value (1,2,3,...)|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I like the use of the table

Comment on lines -3 to -4
The `txsim` binary is a tool that can be used to simulate transactions on the Celestia network. It can be used to test the performance of the Celestia network.
This guide provides instructions on how to use the Celestia `txsim` Docker image. The `txsim` Docker image is designed to run the `txsim` binary with a variety of configurable options.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is helpful as an opening sentence about this README document

@rootulp
Copy link
Collaborator

rootulp commented Mar 25, 2024

@ogunleye0720 markdownlint is failing: https://github.com/celestiaorg/celestia-app/actions/runs/8402250437/job/23035947714?pr=3209

Can you please fix the violations? You can run markdownlint locally via make lint after installing markdownlint. See https://github.com/celestiaorg/celestia-app?tab=readme-ov-file#tools

@rootulp
Copy link
Collaborator

rootulp commented Apr 4, 2024

Going to close this b/c it doesn't appear to be actively worked on. Thanks for attempting to contribute @ogunleye0720! Please re-open if you address feedback.

@rootulp rootulp closed this Apr 4, 2024
@ogunleye0720
Copy link
Author

Going to close this b/c it doesn't appear to be actively worked on. Thanks for attempting to contribute @ogunleye0720! Please re-open if you address feedback.

Hello @rootulp I spent the weekend working on the docs/node/docker.md repository. I will jump on this during the weekend. I also have a job, so I get very busy during the week.

@rootulp
Copy link
Collaborator

rootulp commented Apr 4, 2024

No problem and no rush from our side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants