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(requirements): Make compose version check bw-compatible #1068

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

BYK
Copy link
Member

@BYK BYK commented Aug 18, 2021

Refs #1062.

@BYK BYK requested a review from chadwhitacre August 18, 2021 13:27
@BYK BYK enabled auto-merge (squash) August 18, 2021 14:01
@@ -8,7 +8,8 @@ MIN_CPU_HARD=2
MIN_CPU_SOFT=4

DOCKER_VERSION=$(docker version --format '{{.Server.Version}}')
COMPOSE_VERSION=$($dc --version | sed 's/docker-compose version \(.\{1,\}\),.*/\1/')
# Do NOT use $dc instead of `docker-compose` below as older versions don't support certain options and fail
COMPOSE_VERSION=$(docker-compose --version | sed 's/docker-compose version \(.\{1,\}\),.*/\1/')
Copy link
Member

Choose a reason for hiding this comment

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

Does the "docker-composedocker compose" warning/notice leak through here? If so, do we want to suppress it, perhaps by redirecting stderr?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope:

$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c

@BYK BYK merged commit 7b96408 into master Aug 18, 2021
@BYK BYK deleted the byk/fix/better-dc-ver-check branch August 18, 2021 20:43
BYK added a commit that referenced this pull request Aug 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2021
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

2 participants