-
Notifications
You must be signed in to change notification settings - Fork 15
Refactor scripts to support both 'docker compose' and 'docker-compose… #63
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ gridappsdmysql | |
| applications | ||
| services | ||
| .env | ||
| *.log | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,26 @@ | ||||||||||||||||||||||||||
| #!/bin/bash | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| # Detect docker compose command (newer 'docker compose' vs older 'docker-compose') | ||||||||||||||||||||||||||
| detect_docker_compose() { | ||||||||||||||||||||||||||
| if docker compose version &>/dev/null; then | ||||||||||||||||||||||||||
| echo "docker compose" | ||||||||||||||||||||||||||
| elif docker-compose --version &>/dev/null; then | ||||||||||||||||||||||||||
| echo "docker-compose" | ||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||
| echo "" | ||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
Comment on lines
+3
to
+12
|
||||||||||||||||||||||||||
| # Detect docker compose command (newer 'docker compose' vs older 'docker-compose') | |
| detect_docker_compose() { | |
| if docker compose version &>/dev/null; then | |
| echo "docker compose" | |
| elif docker-compose --version &>/dev/null; then | |
| echo "docker-compose" | |
| else | |
| echo "" | |
| fi | |
| } | |
| # Source shared docker compose utility functions | |
| source ./docker-compose-utils.sh |
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.
[nitpick] The addition of ulimits configuration for the blazegraph service appears to be unrelated to the stated purpose of this PR (refactoring scripts to support both 'docker compose' and 'docker-compose' commands). Consider moving this infrastructure change to a separate PR for better change tracking and review focus.