-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: update debug mode build using consolidated multistage dockerfile #21
Conversation
Warning Rate Limit Exceeded@heronimus has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 23 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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. WalkthroughThe recent changes involve consolidating Docker files for development and debugging into a single Dockerfile with multi-stage builds, and adjusting the Docker Compose configuration to select the appropriate build target based on a debug flag. This streamlines the development environment setup by using conditional logic to toggle between standard and debug configurations. Changes
Assessment against linked issues
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- common/tea_cmd/docker.go (1 hunks)
Additional comments: 3
common/tea_cmd/docker.go (3)
- 30-30: The assignment of
yml
to the standard Docker Compose file path is correct and follows best practices for path handling in Go.- 33-33: Appending the standard compose file to the
args
slice when not in debug mode is a clean and straightforward approach.- 35-36: The handling of the debug mode by appending the debug override YAML file to the
args
slice is appropriate and aligns with the PR objectives.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
=======================================
Coverage 61.29% 61.29%
=======================================
Files 4 4
Lines 124 124
=======================================
Hits 76 76
Misses 45 45
Partials 3 3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- common/tea_cmd/docker.go (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- common/tea_cmd/docker.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider to include DockerServiceCardinalDebug
in func
- DockerRestart
- DockerStopAll
and may have to add a check whether cardinal was previously run in debug mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- cmd/world/cardinal/restart.go (1 hunks)
- common/tea_cmd/docker.go (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- common/tea_cmd/docker.go
Additional comments: 1
cmd/world/cardinal/restart.go (1)
- 30-40: The conditional logic to restart different Docker services based on the
cfg.Debug
flag is implemented correctly. However, ensure thattea_cmd.DockerServiceCardinalDebug
andtea_cmd.DockerServiceCardinal
are defined and correctly configured in the respective Docker Compose files.
@zulkhair done, PTAL again 👍 |
@zulkhair Also if this PR looks good, please approve this one as well Argus-Labs/starter-game-template#34 thanks :D |
Closes: #WORLD-716
What is the purpose of the change
Update debug mode (
--debug
) using consolidated multistage dockerfile.See
WORLD-716
and Argus-Labs/starter-game-template#34 for complete context.--debug
mode to run thecardinal-debug
container instead normalcardinal
container.Testing and Verifying
world cardinal start --build --debug
Summary by CodeRabbit
Summary by CodeRabbit