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: modify run pika in docker readme #2743

Merged
merged 5 commits into from
Jun 19, 2024

Conversation

luky116
Copy link
Collaborator

@luky116 luky116 commented Jun 19, 2024

fix #2740

Summary by CodeRabbit

  • Documentation
    • Updated README to reflect new paths for log, database, dump, and database synchronization directories when using Pika with Docker.
    • Adjusted Docker run command in README to match new path configurations.

Copy link

coderabbitai bot commented Jun 19, 2024

Warning

Rate limit exceeded

@luky116 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 36 minutes and 1 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 07faaf9 and a7cabef.

Walkthrough

The changes modify the pika.conf file and update the Docker run command to adjust the paths for the log, database, dump, and database synchronization directories when running Pika with Docker. These updates ensure that the directory paths are correctly configured for Docker environments.

Changes

Files/Paths Change Summary
README.md Updated the summary section to reflect changes in pika.conf paths and Docker run commands.
pika.conf Adjusted paths for log, database, dump, and database synchronization directories.
Docker run command Updated to reflect new directory paths as specified in the modified pika.conf.

Assessment against linked issues

Objective Addressed Explanation
Resolve rsync response error when upgrading from 3.3.6 to 3.5.3 (#2740) The updates to paths and configurations might help, but it's unclear without specific testing.

Poem

In the world of code a change did come,
Paths aligned, and Docker did hum.
Logs and dumps in sync, oh so neat,
Pika found its rhythm, beat by beat.
A rabbit cheers with joy, no fears,
For smoother upgrades in coming years.


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:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • 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 testing code 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 testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @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.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added Invalid PR Title 📒 Documentation Improvements or additions to documentation labels Jun 19, 2024
@luky116 luky116 changed the title modify run pika in docker readme doc: modify run pika in docker readme Jun 19, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e7e2f41 and 3599e51.

Files selected for processing (1)
  • README.md (1 hunks)
Additional context used
LanguageTool
README.md

[uncategorized] ~274-~274: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...veral optional parameters: * -t tag: Specify the Docker tag for the image. B...


[uncategorized] ~275-~275: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...pikadb/pika:. * -p platform: Specify the platform for the Docker ima...


[uncategorized] ~276-~276: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...t docker platform setting. * --proxy: Use a proxy to download packages to spe...


[style] ~276-~276: Consider using a different verb to strengthen your wording. (SPEED_UP_ACCELERATE)
Context: ...y`: Use a proxy to download packages to speed up the build process. The build will use A...


[uncategorized] ~277-~277: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...ibaba Cloud's image source. * --help: Display help information. Here is ...


[style] ~530-~530: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...db size, log size, memory usage etc. 3. Pika Client Info: The number of connected cl...


[style] ~531-~531: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...fo: The number of connected clients. 4. Pika Stats Info: status information of compa...


[style] ~532-~532: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...s information of compact, slot, etc. 5. Pika Network Info: Incoming and outgoing tra...


[style] ~533-~533: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...client and master-slave replication. 6. Pika CPU Info: cpu usage. 7. Pika Replicatio...


[style] ~534-~534: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...cation. 6. Pika CPU Info: cpu usage. 7. Pika Replication Info: Status information of...


[style] ~535-~535: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...ave replication, binlog information. 8. Pika Keyspace Info: key information of five ...


[style] ~536-~536: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ... key information of five data types. 9. Pika Command Exec Count Info: command execut...


[style] ~537-~537: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...ount Info: command execution count. 10. Pika Command Execution Time: Time-consuming ...

Markdownlint
README.md

547-547: Expected: asterisk; Actual: dash (MD004, ul-style)
Unordered list style


548-548: Expected: asterisk; Actual: dash (MD004, ul-style)
Unordered list style


549-549: Expected: asterisk; Actual: dash (MD004, ul-style)
Unordered list style


316-316: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


317-317: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


318-318: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


319-319: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


320-320: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


321-321: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


322-322: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


306-306: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


101-101: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


328-328: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


523-523: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


179-179: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


205-205: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


288-288: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


553-553: null (MD045, no-alt-text)
Images should have alternate text (alt text)


312-312: Expected: asterisk; Actual: underscore (MD050, strong-style)
Strong style


312-312: Expected: asterisk; Actual: underscore (MD050, strong-style)
Strong style

Additional comments not posted (1)
README.md (1)

255-262: Ensure the updated Docker run command reflects the new path configurations correctly.

The changes made to the Docker run command and the associated volume mappings are appropriate for addressing the path issues described in the linked issue. This should help in resolving the rsync errors by ensuring the directories are correctly mapped and accessible within the Docker container.

@chejinge chejinge changed the title doc: modify run pika in docker readme docs: modify run pika in docker readme Jun 19, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Outside diff range and nitpick comments (1)
README.md (1)

255-261: Consider adding a brief explanation for each configuration change.

It might be beneficial for users, especially those new to Pika, to understand why these specific paths (/data/log/, /data/db/, etc.) are chosen and how they relate to resolving the rsync issue mentioned in the PR.

Tools
Markdownlint

256-256: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


255-255: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines


256-256: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3599e51 and 07faaf9.

Files selected for processing (1)
  • README.md (1 hunks)
Additional context used
LanguageTool
README.md

[uncategorized] ~281-~281: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...veral optional parameters: * -t tag: Specify the Docker tag for the image. B...


[uncategorized] ~282-~282: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...pikadb/pika:. * -p platform: Specify the platform for the Docker ima...


[uncategorized] ~283-~283: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...t docker platform setting. * --proxy: Use a proxy to download packages to spe...


[style] ~283-~283: Consider using a different verb to strengthen your wording. (SPEED_UP_ACCELERATE)
Context: ...y`: Use a proxy to download packages to speed up the build process. The build will use A...


[uncategorized] ~284-~284: Loose punctuation mark. (UNLIKELY_OPENING_PUNCTUATION)
Context: ...ibaba Cloud's image source. * --help: Display help information. Here is ...


[style] ~537-~537: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...db size, log size, memory usage etc. 3. Pika Client Info: The number of connected cl...


[style] ~538-~538: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...fo: The number of connected clients. 4. Pika Stats Info: status information of compa...


[style] ~539-~539: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...s information of compact, slot, etc. 5. Pika Network Info: Incoming and outgoing tra...


[style] ~540-~540: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...client and master-slave replication. 6. Pika CPU Info: cpu usage. 7. Pika Replicatio...


[style] ~541-~541: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...cation. 6. Pika CPU Info: cpu usage. 7. Pika Replication Info: Status information of...


[style] ~542-~542: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...ave replication, binlog information. 8. Pika Keyspace Info: key information of five ...


[style] ~543-~543: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ... key information of five data types. 9. Pika Command Exec Count Info: command execut...


[style] ~544-~544: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ...ount Info: command execution count. 10. Pika Command Execution Time: Time-consuming ...

Markdownlint
README.md

554-554: Expected: asterisk; Actual: dash (MD004, ul-style)
Unordered list style


555-555: Expected: asterisk; Actual: dash (MD004, ul-style)
Unordered list style


556-556: Expected: asterisk; Actual: dash (MD004, ul-style)
Unordered list style


323-323: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


324-324: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


325-325: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


326-326: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


327-327: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


328-328: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


329-329: Expected: 0; Actual: 2 (MD007, ul-indent)
Unordered list indentation


313-313: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


101-101: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


335-335: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


530-530: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


179-179: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


205-205: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


256-256: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


264-264: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


295-295: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


255-255: null (MD032, blanks-around-lists)
Lists should be surrounded by blank lines


256-256: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified


560-560: null (MD045, no-alt-text)
Images should have alternate text (alt text)


319-319: Expected: asterisk; Actual: underscore (MD050, strong-style)
Strong style


319-319: Expected: asterisk; Actual: underscore (MD050, strong-style)
Strong style

@@ -252,14 +252,21 @@ Users can directly download the latest binary version package from [releases](ht

* #### 3.1 Running with Docker

```bash
Modify the following configuration items of the conf file:
```
Copy link

Choose a reason for hiding this comment

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

Specify the language for the code block to enhance readability and syntax highlighting.

-```
+```properties
 log-path : /data/log/
 db-path : /data/db/
 db-sync-path : /data/dbsync/
 dump-path : /data/dump/

Specifying the language as properties for the configuration snippet will help in syntax highlighting and improve the readability of the documentation.

Tools
Markdownlint

256-256: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


256-256: null (MD040, fenced-code-language)
Fenced code blocks should have a language specified

```

And then execute the following statement to start pika in docker:
```bash
Copy link

Choose a reason for hiding this comment

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

Add a blank line before the code block for proper markdown formatting.

-  And then execute the following statement to start pika in docker:
+  And then execute the following statement to start pika in docker:

  ```bash

A blank line before the code block will ensure it is properly formatted in markdown viewers.

Tools
Markdownlint

264-264: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Comment on lines +264 to +269
```bash
docker run -d \
--restart=always \
-p 9221:9221 \
-v <log_dir>:/pika/log \
-v <db_dir>:/pika/db \
-v <dump_dir>:/pika/dump \
-v <dbsync_dir>:/pika/dbsync \
-v "$(pwd)/conf":"/pika/conf" \
-v "/tmp/pika-data":"/data" \
Copy link

Choose a reason for hiding this comment

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

Ensure consistent formatting in Docker run commands.

-    -v "$(pwd)/conf":"/pika/conf" \
-    -v "/tmp/pika-data":"/data" \
+    -v "$(pwd)/conf:/pika/conf" \
+    -v "/tmp/pika-data:/data" \

The volume mappings in the Docker command should not have spaces around the colon to ensure consistency and avoid potential issues in different environments or shells.

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. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```bash
docker run -d \
--restart=always \
-p 9221:9221 \
-v <log_dir>:/pika/log \
-v <db_dir>:/pika/db \
-v <dump_dir>:/pika/dump \
-v <dbsync_dir>:/pika/dbsync \
-v "$(pwd)/conf":"/pika/conf" \
-v "/tmp/pika-data":"/data" \
```bash
docker run -d \
--restart=always \
-p 9221:9221 \
-v "$(pwd)/conf:/pika/conf" \
-v "/tmp/pika-data:/data" \
Tools
Markdownlint

264-264: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

@baerwang baerwang merged commit e7edec6 into OpenAtomFoundation:unstable Jun 19, 2024
14 checks passed
chejinge pushed a commit that referenced this pull request Jul 31, 2024
* modify readme

* modify readme

* modify readme

* modify readme

---------

Co-authored-by: liuyuecai <liuyuecai@360.cn>
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* modify readme

* modify readme

* modify readme

* modify readme

---------

Co-authored-by: liuyuecai <liuyuecai@360.cn>
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* modify readme

* modify readme

* modify readme

* modify readme

---------

Co-authored-by: liuyuecai <liuyuecai@360.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.5 4.0.0 📒 Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rsync response error when upgrade from 3.3.6 to 3.5.3
4 participants