Skip to content

chore: lumen entrypoint in docker compose#2398

Merged
Manav-Aggarwal merged 2 commits intomainfrom
claude/docker_lumen_entrypoint
Jun 25, 2025
Merged

chore: lumen entrypoint in docker compose#2398
Manav-Aggarwal merged 2 commits intomainfrom
claude/docker_lumen_entrypoint

Conversation

@auricom
Copy link
Copy Markdown
Contributor

@auricom auricom commented Jun 25, 2025

Overview

Better readability and maintainability for lumen command thanks to supporting standard unix binaries on the lumen container image cf evstack/ev-reth@bbca148

Summary by CodeRabbit

  • Chores
    • Updated the container startup command style in the service configuration for improved command execution handling. No changes to parameters or functionality.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jun 25, 2025

Walkthrough

The docker-compose configuration for the rollkit-reth service was updated to change the container's command execution style. The command is now executed via a shell using an explicit entrypoint and a single shell command string, instead of a direct argument list.

Changes

File Change Summary
apps/evm/single/docker-compose.yml Modified rollkit-reth service to use a shell entrypoint and a single shell command string.

Suggested reviewers

  • tac0turtle

Poem

In the land of Compose, a command took flight,
From argument lists to a shell’s delight.
With slashes and quotes, the script now flows,
Through entrypoint’s door, the container goes.
A hop, a skip, a shell’s new tune—
Deployment’s easier, thanks to this boon! 🐇


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 using 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 25, 2025

The latest Buf updates on your PR. Results from workflow CI and Release / buf-check (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedJun 25, 2025, 3:46 PM

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @auricom, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the Docker Compose configuration for the lumen service, specifically in the apps/evm/single directory. The primary goal is to enhance the readability and maintainability of the lumen command execution within the container, aligning with recent changes in the lumen container image that support standard Unix binaries. This is achieved by adjusting the entrypoint and restructuring the command definition.

Highlights

  • Docker Compose Configuration: The docker-compose.yml file for the lumen service in apps/evm/single/docker-compose.yml has been updated to explicitly define an entrypoint as /bin/sh -c.
  • Command Readability and Maintainability: The command definition for the lumen service has been refactored. Previously, it was a long YAML list where each argument was a separate item. Now, it's consolidated into a single, multi-line string starting with lumen node \, which significantly improves the readability and maintainability of the lumen command and its parameters within the Docker Compose file.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the docker-compose.yml for the rollkit-reth service to improve the readability of the startup command. The change is a good improvement. I've provided a couple of suggestions to further enhance the readability and robustness of the configuration by using the list form for entrypoint and the folded block scalar for the command.

- ./chain:/root/chain:ro
- ./jwttoken:/root/jwt:ro
- logs:/root/logs
entrypoint: /bin/sh -c
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For better clarity and to avoid potential shell parsing issues, it's recommended to use the list form for the entrypoint.

    entrypoint: ["/bin/sh", "-c"]

Comment on lines +20 to +42
- |
lumen node \
--chain /root/chain/genesis.json \
--metrics 0.0.0.0:9001 \
--log.file.directory /root/logs \
--authrpc.addr 0.0.0.0 \
--authrpc.port 8551 \
--authrpc.jwtsecret /root/jwt/jwt.hex \
--http --http.addr 0.0.0.0 --http.port 8545 \
--http.api eth,net,web3,txpool \
--ws --ws.addr 0.0.0.0 --ws.port 8546 \
--ws.api eth,net,web3 \
--engine.persistence-threshold 0 \
--engine.memory-block-buffer-target 0 \
--disable-discovery \
--txpool.pending-max-count 200000 \
--txpool.pending-max-size 200 \
--txpool.queued-max-count 200000 \
--txpool.queued-max-size 200 \
--txpool.max-account-slots 2048 \
--txpool.max-new-txns 2048 \
--txpool.additional-validation-tasks 16 \
--rollkit.enable
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Using the folded block scalar > is a bit cleaner here as it avoids the need for trailing backslashes on each line, improving readability.

      - >
          lumen node
            --chain /root/chain/genesis.json
            --metrics 0.0.0.0:9001
            --log.file.directory /root/logs
            --authrpc.addr 0.0.0.0
            --authrpc.port 8551
            --authrpc.jwtsecret /root/jwt/jwt.hex
            --http --http.addr 0.0.0.0 --http.port 8545
            --http.api eth,net,web3,txpool
            --ws --ws.addr 0.0.0.0 --ws.port 8546
            --ws.api eth,net,web3
            --engine.persistence-threshold 0
            --engine.memory-block-buffer-target 0
            --disable-discovery
            --txpool.pending-max-count 200000
            --txpool.pending-max-size 200
            --txpool.queued-max-count 200000
            --txpool.queued-max-size 200
            --txpool.max-account-slots 2048
            --txpool.max-new-txns 2048
            --txpool.additional-validation-tasks 16
            --rollkit.enable

Copy link
Copy Markdown
Contributor

@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

🧹 Nitpick comments (1)
apps/evm/single/docker-compose.yml (1)

20-42: Reduce YAML noise – prefer a folded scalar (>) for the long shell command

The command is wrapped in a one-element list plus explicit back-slashes.
A cleaner, easier-to-diff variant is:

command: >
  lumen node
    --chain /root/chain/genesis.json
    --metrics 0.0.0.0:9001
    --log.file.directory /root/logs
    --authrpc.addr 0.0.0.0
    --authrpc.port 8551
    --authrpc.jwtsecret /root/jwt/jwt.hex
    --http --http.addr 0.0.0.0 --http.port 8545
    --http.api eth,net,web3,txpool
    --ws --ws.addr 0.0.0.0 --ws.port 8546
    --ws.api eth,net,web3
    --engine.persistence-threshold 0
    --engine.memory-block-buffer-target 0
    --disable-discovery
    --txpool.pending-max-count 200000
    --txpool.pending-max-size 200
    --txpool.queued-max-count 200000
    --txpool.queued-max-size 200
    --txpool.max-account-slots 2048
    --txpool.max-new-txns 2048
    --txpool.additional-validation-tasks 16
    --rollkit.enable

Benefits: no escaping, better readability, aligns with prior review advice.
(Keep the backslashes only if you must preserve a single logical line.)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 019b2bc and 33a3222.

📒 Files selected for processing (1)
  • apps/evm/single/docker-compose.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (7)
  • GitHub Check: test / Run E2E System Tests
  • GitHub Check: test / Run EVM Execution Tests
  • GitHub Check: test / Run Unit Tests
  • GitHub Check: test / Build Rollkit Docker Image
  • GitHub Check: test / Build Rollkit EVM Single Docker Image
  • GitHub Check: Analyze (go)
  • GitHub Check: Summary
🔇 Additional comments (1)
apps/evm/single/docker-compose.yml (1)

18-18: /bin/sh -c must be expressed as a list – current form breaks the entrypoint

Compose treats the whole string /bin/sh -c as a single executable path, so the container will try to run a file literally named -c, which fails.
Convert to list form so -c is passed as an argument:

-    entrypoint: /bin/sh -c
+    entrypoint: ["/bin/sh", "-c"]

[raise_critical_issue, duplicate_comment]

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.99%. Comparing base (019b2bc) to head (33a3222).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2398      +/-   ##
==========================================
- Coverage   73.05%   72.99%   -0.07%     
==========================================
  Files          67       67              
  Lines        6339     6339              
==========================================
- Hits         4631     4627       -4     
- Misses       1313     1316       +3     
- Partials      395      396       +1     
Flag Coverage Δ
combined 72.99% <ø> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Manav-Aggarwal Manav-Aggarwal enabled auto-merge June 25, 2025 18:15
@Manav-Aggarwal Manav-Aggarwal added this pull request to the merge queue Jun 25, 2025
Merged via the queue into main with commit 9bae7f4 Jun 25, 2025
28 checks passed
@Manav-Aggarwal Manav-Aggarwal deleted the claude/docker_lumen_entrypoint branch June 25, 2025 18:21
@github-project-automation github-project-automation bot moved this to Done in Evolve Jun 25, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jun 27, 2025
## Overview

Better readability and maintainability for lumen command thanks to
supporting standard unix binaries on the lumen container image cf
evstack/ev-reth@bbca148

Same as #2398 but on missed
docker compose files in `execution/evm/docker`

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Updated Docker Compose service configurations to improve command
execution formatting. No changes to service parameters or functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@tac0turtle tac0turtle removed this from Evolve Aug 25, 2025
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