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

Fix minimum version requirements for docker and docker compose #1732

Merged

Conversation

hubertdeng123
Copy link
Member

The function vergte here doesn't correctly use the return code in order to be used in version comparison. As a result, users are running older versions of docker compose. The issue with the largest number of events in our dogfood instance seems to be a result of folks using an older version of docker compose, then erroring out later during the turn things off script.

This fixes the issue here:
#1706

@@ -13,14 +13,14 @@ if [[ -z "$DOCKER_VERSION" ]]; then
exit 1
fi

if [[ "$(vergte ${DOCKER_VERSION//v} $MIN_DOCKER_VERSION)" ]]; then
if [[ "$(vergte ${DOCKER_VERSION//v} $MIN_DOCKER_VERSION)" -eq 1 ]]; then
Copy link
Member Author

Choose a reason for hiding this comment

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

Equal comparison is needed for this to succeed

@hubertdeng123 hubertdeng123 changed the title Fix minimum requirements for docker and docker compose Fix minimum version requirements for docker and docker compose Oct 3, 2022
Copy link
Contributor

@ethanhs ethanhs left a comment

Choose a reason for hiding this comment

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

Thanks!

@hubertdeng123 hubertdeng123 merged commit 202742c into master Oct 3, 2022
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/fix-minimum-version-requirements branch October 3, 2022 20:54
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants