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

Make develop.sh and test.sh compatible with compose v2 #2184

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

amCap1712
Copy link
Member

The command to execute docker compose in v2 is docker compose as opposed to docker-compose in v1. I recently upgraded versions on my local machine and faced errors while trying to execute the scripts. Since, no else has complained so far they are likely using v1. Therefore, updating the scripts to check the version of docker compose installed and invoke the appropriate command for compatibility with both versions.

Note that there are some differences between the two commands but AFAIU those are not relevant to our uses.

The command to execute docker compose in v2 is `docker compose` as opposed
to `docker-compose` in v1. I recently upgraded versions on my local machine
and faced errors while trying to execute the scripts. Since, no else has
complained so far they are likely using v1. Therefore, updating the scripts
to check the version of docker compose installed and invoke the appropriate
command for compatibility with both versions.

Note that there are some differences between the two commands but AFAIU
those are not relevant to our uses.
@amCap1712
Copy link
Member Author

I tested locally where I have v2 and on wolf where we have v1 and the scripts work in both cases.

Copy link
Member

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

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

Works for me, looks sane !

@amCap1712 amCap1712 merged commit fe03ae9 into master Sep 30, 2022
@amCap1712 amCap1712 deleted the update-scripts branch September 30, 2022 11:06
amCap1712 added a commit to metabrainz/critiquebrainz that referenced this pull request Nov 29, 2023
amCap1712 added a commit to metabrainz/critiquebrainz that referenced this pull request Nov 29, 2023
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.

2 participants