-
Notifications
You must be signed in to change notification settings - Fork 4
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
deploy: Update Makefile to dynamically select Docker Compose command … #207
Conversation
WalkthroughThe recent update introduces a modification to the deployment process by dynamically adjusting the Changes
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.
…based on Docker version. The deployment Makefile has been updated to dynamically determine whether to use 'docker compose' or 'docker-compose' based on the installed Docker version. This change ensures compatibility across different Docker versions, automatically adjusting the command to match the Docker CLI's evolution.
7611b0c
to
6b6bb53
Compare
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.yaml
Files selected for processing (1)
- deployment/Makefile (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- deployment/Makefile
Description
This Pull Request introduces an update to the deployment Makefile to automatically determine the correct Docker Compose command format based on the installed Docker version. It addresses the issue of compatibility with different Docker versions by programmatically checking the Docker version and setting the Docker Compose command (
docker compose
for Docker versions 20.10 and above, anddocker-compose
for older versions) accordingly. This enhancement simplifies the development and deployment process by eliminating the need for manual configuration adjustments based on the Docker version.How Was This Tested?
The changes were tested on multiple environments with different versions of Docker installed to ensure the correct Docker Compose command is selected and used in the Makefile.
Checklist
Before submitting your PR, please review the following:
Summary by CodeRabbit